[rdc] fix wrong logic in MDIO code and second PHY address