bge_tick(): do not touch PHY if link is up. This should solve problem with

extra input errors for some BCM57XX chips.

PR:		kern/122295
This commit is contained in:
Oleg Bulyzhin 2008-09-08 18:10:15 +00:00
parent 4e1833120f
commit 82b67c0132

View File

@ -3387,8 +3387,12 @@ bge_tick(void *xsc)
if ((sc->bge_flags & BGE_FLAG_TBI) == 0) {
mii = device_get_softc(sc->bge_miibus);
/* Don't mess with the PHY in IPMI/ASF mode */
if (!((sc->bge_asf_mode & ASF_STACKUP) && (sc->bge_link)))
/*
* Do not touch PHY if we have link up. This could break
* IPMI/ASF mode or produce extra input errors
* (extra errors was reported for bcm5701 & bcm5704).
*/
if (!sc->bge_link)
mii_tick(mii);
} else {
/*