svn commit: r186389 - head/sys/dev/re

Pyun YongHyeon yongari at FreeBSD.org
Mon Dec 22 00:46:22 UTC 2008


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);
 }


More information about the svn-src-all mailing list