From 38e33df2fe627850f56da7c2a963a5575943a280 Mon Sep 17 00:00:00 2001 From: yongari Date: Mon, 22 Dec 2008 00:46:22 +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 r185753 on fast ethernet controllers. Reported by: csjp, Bruce Cran < bruce <> cran DOT org DOT uk > Tested by: csjp, Bruce Cran (initial version) --- sys/dev/re/if_re.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/dev/re/if_re.c') diff --git a/sys/dev/re/if_re.c b/sys/dev/re/if_re.c index 2ad55fd..21b8251 100644 --- a/sys/dev/re/if_re.c +++ b/sys/dev/re/if_re.c @@ -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); } -- cgit v1.1