Perform media change after setting IFF_DRV_RUNNING flag. Without it,

driver would ignore the first link state update if controller
already established a link.

Reported by:	bsam
Tested by:	bsam
This commit is contained in:
Pyun YongHyeon 2013-11-01 05:03:47 +00:00
parent bc5c7a1ad3
commit b52d3ddba3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=257490

View File

@ -4071,12 +4071,12 @@ msk_init_locked(struct msk_if_softc *sc_if)
CSR_WRITE_4(sc, B0_IMSK, sc->msk_intrmask);
CSR_READ_4(sc, B0_IMSK);
sc_if->msk_flags &= ~MSK_FLAG_LINK;
mii_mediachg(mii);
ifp->if_drv_flags |= IFF_DRV_RUNNING;
ifp->if_drv_flags &= ~IFF_DRV_OACTIVE;
sc_if->msk_flags &= ~MSK_FLAG_LINK;
mii_mediachg(mii);
callout_reset(&sc_if->msk_tick_ch, hz, msk_tick, sc_if);
}