Author: yongari
Date: Mon Jan 12 04:10:40 2009
New Revision: 187083
URL: http://svn.freebsd.org/changeset/base/187083

Log:
  MFC r186390:
    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.

Modified:
  stable/7/sys/   (props changed)
  stable/7/sys/contrib/pf/   (props changed)
  stable/7/sys/dev/cxgb/   (props changed)
  stable/7/sys/pci/if_rl.c

Modified: stable/7/sys/pci/if_rl.c
==============================================================================
--- stable/7/sys/pci/if_rl.c    Mon Jan 12 04:03:25 2009        (r187082)
+++ stable/7/sys/pci/if_rl.c    Mon Jan 12 04:10:40 2009        (r187083)
@@ -1395,6 +1395,8 @@ rl_tick(void *xsc)
        RL_LOCK_ASSERT(sc);
        mii = device_get_softc(sc->rl_miibus);
        mii_tick(mii);
+       if ((sc->rl_flags & RL_FLAG_LINK) == 0)
+               rl_miibus_statchg(sc->rl_dev);
 
        rl_watchdog(sc);
 
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to