svn commit: r257688 - stable/9/sys/dev/msk

Pyun YongHyeon yongari at FreeBSD.org
Tue Nov 5 06:48:58 UTC 2013


Author: yongari
Date: Tue Nov  5 06:48:58 2013
New Revision: 257688
URL: http://svnweb.freebsd.org/changeset/base/257688

Log:
  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.

Modified:
  stable/9/sys/dev/msk/if_msk.c
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/dev/   (props changed)

Modified: stable/9/sys/dev/msk/if_msk.c
==============================================================================
--- stable/9/sys/dev/msk/if_msk.c	Tue Nov  5 06:48:12 2013	(r257687)
+++ stable/9/sys/dev/msk/if_msk.c	Tue Nov  5 06:48:58 2013	(r257688)
@@ -4068,12 +4068,12 @@ msk_init_locked(struct msk_if_softc *sc_
 	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);
 }
 


More information about the svn-src-stable-9 mailing list