Make sure to enable Next Page bit for IP1001. Otherwise the PHY

fails to re-establishe 1000baseT link after downgrading to
10/100Mbps link.
This commit is contained in:
Pyun YongHyeon 2009-12-18 21:57:51 +00:00
parent e7f42eade6
commit 45e564a90b

View File

@ -398,8 +398,10 @@ ip1000phy_mii_phy_auto(struct mii_softc *sc)
isc = (struct ip1000phy_softc *)sc;
reg = 0;
if (isc->model == MII_MODEL_ICPLUS_IP1001)
if (isc->model == MII_MODEL_ICPLUS_IP1001) {
reg = PHY_READ(sc, IP1000PHY_MII_ANAR);
reg |= IP1000PHY_ANAR_NP;
}
reg |= IP1000PHY_ANAR_10T | IP1000PHY_ANAR_10T_FDX |
IP1000PHY_ANAR_100TX | IP1000PHY_ANAR_100TX_FDX |
IP1000PHY_ANAR_PAUSE | IP1000PHY_ANAR_APAUSE;