From 4fea5c77549e61d0dbb1c1cf9acbcadedb11d7cf Mon Sep 17 00:00:00 2001 From: yongari Date: Mon, 22 Dec 2008 00:53:47 +0000 Subject: 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 --- sys/pci/if_rl.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/pci/if_rl.c') diff --git a/sys/pci/if_rl.c b/sys/pci/if_rl.c index d11d5d9..20f4504 100644 --- a/sys/pci/if_rl.c +++ b/sys/pci/if_rl.c @@ -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); -- cgit v1.1