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)
This commit is contained in:
yongari 2008-12-22 00:46:22 +00:00
parent ce8ac85e5f
commit 38e33df2fe

View File

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