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
This commit is contained in:
Pyun YongHyeon 2008-12-22 00:53:47 +00:00
parent 0fe200d953
commit f28d469d87
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=186390

View File

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