svn commit: r199413 - head/sys/dev/msk
Pyun YongHyeon
yongari at FreeBSD.org
Tue Nov 17 18:19:46 UTC 2009
Author: yongari
Date: Tue Nov 17 18:19:45 2009
New Revision: 199413
URL: http://svn.freebsd.org/changeset/base/199413
Log:
It seems generation of link state change of e1000phy(4) is not
reliable on some Marvell PHYs. If msk(4) know it still does not
have established link check whether msk(4) missed the link state
change by looking into polled link state.
Reported by: Mel Flynn < mel.flynn+fbsd.current <> mailing.thruhere dot net >,
Gleb Kurtsou <gleb.kurtsou <> gmail dot com >
Tested by: Gleb Kurtsou <gleb.kurtsou <> gmail dot com >
Modified:
head/sys/dev/msk/if_msk.c
Modified: head/sys/dev/msk/if_msk.c
==============================================================================
--- head/sys/dev/msk/if_msk.c Tue Nov 17 17:53:52 2009 (r199412)
+++ head/sys/dev/msk/if_msk.c Tue Nov 17 18:19:45 2009 (r199413)
@@ -3198,6 +3198,8 @@ msk_tick(void *xsc_if)
mii = device_get_softc(sc_if->msk_miibus);
mii_tick(mii);
+ if ((sc_if->msk_flags & MSK_FLAG_LINK) == 0)
+ msk_miibus_statchg(sc_if->msk_if_dev);
msk_watchdog(sc_if);
callout_reset(&sc_if->msk_tick_ch, hz, msk_tick, sc_if);
}
More information about the svn-src-all
mailing list