Date: Fri, 20 Nov 2020 11:27:08 +0000 (UTC) From: Emmanuel Vadot <manu@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r367876 - head/sys/dev/dwc Message-ID: <202011201127.0AKBR8LG089641@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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()
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202011201127.0AKBR8LG089641>