mirror of https://github.com/hak5/openwrt.git
ralink: fix mdio polling of external phys if only 1 phy exists
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 43235lede-17.01
parent
6623feb572
commit
e399931376
|
@ -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 New Issue