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

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

SVN-Revision: 43235
This commit is contained in:
John Crispin 2014-11-11 11:46:09 +00:00
parent 6623feb572
commit e399931376

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);
}