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:
parent
6623feb572
commit
e399931376
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue