svn commit: r186390 - head/sys/pci

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


Author: yongari
Date: Mon Dec 22 00:53:47 2008
New Revision: 186390
URL: http://svn.freebsd.org/changeset/base/186390

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
  r184245.
  
  PR:	kern/129647

Modified:
  head/sys/pci/if_rl.c

Modified: head/sys/pci/if_rl.c
==============================================================================
--- head/sys/pci/if_rl.c	Mon Dec 22 00:46:22 2008	(r186389)
+++ head/sys/pci/if_rl.c	Mon Dec 22 00:53:47 2008	(r186390)
@@ -1518,6 +1518,8 @@ rl_tick(void *xsc)
 	 */
 	mii = device_get_softc(sc->rl_miibus);
 	mii_tick(mii);
+	if ((sc->rl_flags & RL_FLAG_LINK) == 0)
+		rl_miibus_statchg(sc->rl_dev);
 	if (sc->rl_twister_enable) {
 		if (sc->rl_twister == DONE)
 			rl_watchdog(sc);


More information about the svn-src-head mailing list