summaryrefslogtreecommitdiff
path: root/sys/dev/sbus
diff options
context:
space:
mode:
authorMike Belopuhov <mikeb@cvs.openbsd.org>2013-05-28 09:46:07 +0000
committerMike Belopuhov <mikeb@cvs.openbsd.org>2013-05-28 09:46:07 +0000
commit1e2efc1e25daf3d129ee3005554654e7362439f1 (patch)
treef56209a2954a045aaa2950a6adf60ef19c408fbc /sys/dev/sbus
parentc8a242277c4385d0603607353fb05dd8704c83fa (diff)
Fix a common issue across different PHY drivers to reset the
autonegotiation timer when PHY gets the link so that if we restart the timer the mii_ticks value would be sane. Lifted originally from FreeBSD, tested by a few on re(4) and bge(4), ok kettenis
Diffstat (limited to 'sys/dev/sbus')
-rw-r--r--sys/dev/sbus/be.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/sbus/be.c b/sys/dev/sbus/be.c
index 1527ff0008b..d508c4c2512 100644
--- a/sys/dev/sbus/be.c
+++ b/sys/dev/sbus/be.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: be.c,v 1.23 2008/11/28 02:44:18 brad Exp $ */
+/* $OpenBSD: be.c,v 1.24 2013/05/28 09:46:06 mikeb Exp $ */
/* $NetBSD: be.c,v 1.26 2001/03/20 15:39:20 pk Exp $ */
/*-
@@ -1531,6 +1531,7 @@ be_intphy_service(struct be_softc *sc, struct mii_data *mii, int cmd)
sc->sc_dev.dv_xname,
(bmcr & BMCR_S100) ? "100" : "10");
}
+ sc->sc_mii_ticks = 0;
return (0);
}