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:
parent
ce8ac85e5f
commit
38e33df2fe
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user