svn commit: r367876 - head/sys/dev/dwc
Emmanuel Vadot
manu at FreeBSD.org
Fri Nov 20 11:27:08 UTC 2020
Author: manu
Date: Fri Nov 20 11:27:08 2020
New Revision: 367876
URL: https://svnweb.freebsd.org/changeset/base/367876
Log:
if_dwc: Use if_setdrvflagbits to notify that we are running
No functional changes intended
Modified:
head/sys/dev/dwc/if_dwc.c
Modified: head/sys/dev/dwc/if_dwc.c
==============================================================================
--- head/sys/dev/dwc/if_dwc.c Fri Nov 20 11:26:46 2020 (r367875)
+++ head/sys/dev/dwc/if_dwc.c Fri Nov 20 11:27:08 2020 (r367876)
@@ -481,11 +481,11 @@ dwc_init_locked(struct dwc_softc *sc)
if (ifp->if_drv_flags & IFF_DRV_RUNNING)
return;
- ifp->if_drv_flags |= IFF_DRV_RUNNING;
-
dwc_setup_rxfilter(sc);
dwc_setup_core(sc);
dwc_init_dma(sc);
+
+ if_setdrvflagbits(ifp, IFF_DRV_RUNNING, IFF_DRV_OACTIVE);
/*
* Call mii_mediachg() which will call back into dwc_miibus_statchg()
More information about the svn-src-head
mailing list