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
241dd5673c
commit
0fe200d953
@ -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…
x
Reference in New Issue
Block a user