ralink: fix mdio polling of external phys if only 1 phy exists

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43235
lede-17.01
John Crispin 2014-11-11 11:46:09 +00:00
parent 6623feb572
commit e399931376
1 changed files with 3 additions and 0 deletions

View File

@ -299,6 +299,9 @@ static void gsw_auto_poll(struct mt7620_gsw *gsw)
msb = phy;
}
if (lsb)
lsb--;
gsw_w32(gsw, PHY_AN_EN | PHY_PRE_EN | PMY_MDC_CONF(5) | (msb << 8) | lsb, ESW_PHY_POLLING);
}