Permalink
Browse files

MFC r257490:

  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.
Approved by:	re (glebius)
  • Loading branch information...
1 parent 6db2429 commit 3a014860fee3f962c848987210b061313458f14a yongari committed Nov 5, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 sys/dev/msk/if_msk.c
View
6 sys/dev/msk/if_msk.c
@@ -4070,12 +4070,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);
}

0 comments on commit 3a01486

Please sign in to comment.