diff options
author | oleg <oleg@FreeBSD.org> | 2006-07-03 10:37:09 +0000 |
---|---|---|
committer | oleg <oleg@FreeBSD.org> | 2006-07-03 10:37:09 +0000 |
commit | 57f08c23c3227560f032b55c61beba76566b1793 (patch) | |
tree | 92b6c955c37c3ff41bbd01a61a890cc9957d040b | |
parent | 444d196b29d0924581598414ae1f1d1811506324 (diff) | |
download | FreeBSD-src-57f08c23c3227560f032b55c61beba76566b1793.zip FreeBSD-src-57f08c23c3227560f032b55c61beba76566b1793.tar.gz |
Reset autonegotiation timer if current media is not 'auto'.
Approved by: glebius (mentor)
MFC after: 2 weeks
-rw-r--r-- | sys/dev/mii/mii_physubr.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/mii/mii_physubr.c b/sys/dev/mii/mii_physubr.c index cc60966..281016b 100644 --- a/sys/dev/mii/mii_physubr.c +++ b/sys/dev/mii/mii_physubr.c @@ -213,8 +213,10 @@ mii_phy_tick(struct mii_softc *sc) * status so we can generate an announcement if the status * changes. */ - if (IFM_SUBTYPE(ife->ifm_media) != IFM_AUTO) + if (IFM_SUBTYPE(ife->ifm_media) != IFM_AUTO) { + sc->mii_ticks = 0; /* reset autonegotiation timer. */ return (0); + } /* Read the status register twice; BMSR_LINK is latch-low. */ reg = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); |