Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Dec 2008 00:46:22 +0000 (UTC)
From:      Pyun YongHyeon <yongari@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r186389 - head/sys/dev/re
Message-ID:  <200812220046.mBM0kMBp046575@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yongari
Date: Mon Dec 22 00:46:22 2008
New Revision: 186389
URL: http://svn.freebsd.org/changeset/base/186389

Log:
  Since we don't request reset for rlphy(4), the link state 'UP'
  event from mii(4) may not be delivered if valid link was already
  established. To address the issue, check current link state after
  driving MII_TICK. This should fix a regression introduced in
  r185753 on fast ethernet controllers.
  
  Reported by:	csjp, Bruce Cran < bruce <> cran DOT org DOT uk >
  Tested by:	csjp, Bruce Cran (initial version)

Modified:
  head/sys/dev/re/if_re.c

Modified: head/sys/dev/re/if_re.c
==============================================================================
--- head/sys/dev/re/if_re.c	Mon Dec 22 00:39:33 2008	(r186388)
+++ head/sys/dev/re/if_re.c	Mon Dec 22 00:46:22 2008	(r186389)
@@ -2068,6 +2068,8 @@ re_tick(void *xsc)
 
 	mii = device_get_softc(sc->rl_miibus);
 	mii_tick(mii);
+	if ((sc->rl_flags & RL_FLAG_LINK) == 0)
+		re_miibus_statchg(sc->rl_dev);
 	re_watchdog(sc);
 	callout_reset(&sc->rl_stat_callout, hz, re_tick, sc);
 }



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