Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Nov 2009 20:19:24 +0000 (UTC)
From:      Pyun YongHyeon <yongari@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r199942 - stable/8/sys/dev/msk
Message-ID:  <200911292019.nATKJOTj007961@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911292019.nATKJOTj007961>