svn commit: r199942 - stable/8/sys/dev/msk
Pyun YongHyeon
yongari at FreeBSD.org
Sun Nov 29 20:19:24 UTC 2009
Author: yongari
Date: Sun Nov 29 20:19:24 2009
New Revision: 199942
URL: http://svn.freebsd.org/changeset/base/199942
Log:
MFC r199413:
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:
stable/8/sys/dev/msk/if_msk.c
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/amd64/include/xen/ (props changed)
stable/8/sys/cddl/contrib/opensolaris/ (props changed)
stable/8/sys/contrib/dev/acpica/ (props changed)
stable/8/sys/contrib/pf/ (props changed)
stable/8/sys/dev/xen/xenpci/ (props changed)
Modified: stable/8/sys/dev/msk/if_msk.c
==============================================================================
--- stable/8/sys/dev/msk/if_msk.c Sun Nov 29 20:17:50 2009 (r199941)
+++ stable/8/sys/dev/msk/if_msk.c Sun Nov 29 20:19:24 2009 (r199942)
@@ -3200,6 +3200,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-stable
mailing list