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

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

SVN-Revision: 43235
master
John Crispin 10 years ago
parent 6623feb572
commit e399931376
  1. 3
      target/linux/ramips/files/drivers/net/ethernet/ralink/gsw_mt7620a.c

@ -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…
Cancel
Save