summaryrefslogtreecommitdiffstats
path: root/sys/dev/mii/xmphy.c
diff options
context:
space:
mode:
authorandre <andre@FreeBSD.org>2004-05-03 13:01:34 +0000
committerandre <andre@FreeBSD.org>2004-05-03 13:01:34 +0000
commitf8ee348f1d1b903d0b117c893b5f73aed4e5bce8 (patch)
treeff1bd46cb26c67e03c65388e1a1f300a9c5b60d7 /sys/dev/mii/xmphy.c
parent0e0892f300c42840e39885a17d59d5cff2ed6c15 (diff)
downloadFreeBSD-src-f8ee348f1d1b903d0b117c893b5f73aed4e5bce8.zip
FreeBSD-src-f8ee348f1d1b903d0b117c893b5f73aed4e5bce8.tar.gz
Correct the phy_service() routine case MII_TICK to correctly track
the falling edge of a media state change. This is in preparation for media state change notification to the routing socket. No objections by: sam, wpaul, ru, bms Brucification by: bde
Diffstat (limited to 'sys/dev/mii/xmphy.c')
-rw-r--r--sys/dev/mii/xmphy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/mii/xmphy.c b/sys/dev/mii/xmphy.c
index 2a1ee80..22ecd73 100644
--- a/sys/dev/mii/xmphy.c
+++ b/sys/dev/mii/xmphy.c
@@ -255,8 +255,8 @@ xmphy_service(sc, mii, cmd)
/*
* Only retry autonegotiation every 5 seconds.
*/
- if (++sc->mii_ticks != 5)
- return (0);
+ if (++sc->mii_ticks <= 5)
+ break;
sc->mii_ticks = 0;
OpenPOWER on IntegriCloud