From nobody Thu Aug 11 14:53:11 2022 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4M3VD736rWz4Y7Z7; Thu, 11 Aug 2022 14:53:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4M3VD72Twdz3Slv; Thu, 11 Aug 2022 14:53:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660229591; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=vCMNQlkZ1SthXzjslSzjjj4Zwk4i1sYLtPlBk3hXOH4=; b=JifIL0D9Hvi0pugqVszDGW+t0lV8CArCL5FS75VZkLjVAA41IupppPqyl3yFPDBOasI4vo LwXqobLo4imi9icCZ/IVPK8vo1U+uma7g7u32C6Xj0x0sgv0Vrqzzrf+mtiYPe+9/qx8Ua tm8s9SEDcYJ5WNRikod7NjmUrPqTza4wJ4sE3LRWiJvWTNhzcVvDaEEzH2zXYAmBOFe4EC iks2RW1fzuIwoLtsrnWeZGj8HsumW+MGj/ESoklYKDbwdGrtkOwIC9Ib00yIOG9FVhUGi8 xk3YQohXsNkuh/vM9NxkFGr23+DPANWemcw4GrUoW/FpTuENemtQBBNXG/IR4g== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4M3VD71XRkzw4K; Thu, 11 Aug 2022 14:53:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 27BErBdZ032353; Thu, 11 Aug 2022 14:53:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27BErBiR032352; Thu, 11 Aug 2022 14:53:11 GMT (envelope-from git) Date: Thu, 11 Aug 2022 14:53:11 GMT Message-Id: <202208111453.27BErBiR032352@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mitchell Horne Subject: git: 312e2bca2659 - stable/12 - if_dwc: Use if_setdrvflagbits to notify that we are running List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/stable/12 X-Git-Reftype: branch X-Git-Commit: 312e2bca2659b9045a7886241fce742742584155 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660229591; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=vCMNQlkZ1SthXzjslSzjjj4Zwk4i1sYLtPlBk3hXOH4=; b=nI6/Mfdok6HewZlRnSJxrBSTqpvx/zdsAS8qx1UynrM2zYTFS9xQqXNoJeuSlZbxe9eyGv benKog5CDHDRPFPMhDuay7i22EOWLYT+lnxwHM1vgQmWIHKSfBN2k3u3lnM+/T5Ki1VrC9 yOmBKQQ20On0eZ/qSdE0X2UyMKoLoAQ6fb2GnYbJocRDRwOLhYFjX35LA2t8XmsnA0JpVU U0r4qvjHrfTFLWLK8XPevPMWxILymheUBCZrR4IIo5VJRSYCEEvx/UdvpBSqV4K466Y+sw LyzymVj7jXoH1V0JfCBI/tPeFVzYVu7VPO0W/7py2f1NAYdQOX8i+U+aU54kag== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660229591; a=rsa-sha256; cv=none; b=HXl9GTEF34Tw9rPTF8iG69MHsu1i9gTPgzSvGp4YeuTpfov6s45mWwHouNjcUVgRGDEKIH z2/UfdnQtQ+fFKlibRB7eaM+U0MP2J0u500xIZwYSGOC3EICyaPQdNMt2JGazxh7eHNfL/ S96kVUMLewBnlxcTPtMdXsRMN2yodeRcJYBXYsivfvfrSSyFOcBZHYwlH8wdZHFdqtgbP+ PJpGhs6S5qxGBbyeACu+YYuv1SdApp+WXIuDg25nBeEgRbPxxtsbmF63o17t+V5qsnSdaO fo/FmfTd/7FP/cYU6L3IkZSGnfXn2ZTKUI9gGTY1Zpy6GjRPpOHIY4QrZL0+jg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=312e2bca2659b9045a7886241fce742742584155 commit 312e2bca2659b9045a7886241fce742742584155 Author: Emmanuel Vadot AuthorDate: 2020-11-20 11:27:08 +0000 Commit: Mitchell Horne CommitDate: 2022-08-11 14:52:02 +0000 if_dwc: Use if_setdrvflagbits to notify that we are running No functional changes intended (cherry picked from commit b0cc649b95d8721612973ef05f48fc9622b98beb) --- sys/dev/dwc/if_dwc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/dwc/if_dwc.c b/sys/dev/dwc/if_dwc.c index 6c15bf9e71df..e4270f7dd3de 100644 --- a/sys/dev/dwc/if_dwc.c +++ b/sys/dev/dwc/if_dwc.c @@ -481,12 +481,12 @@ 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() * to set up the remaining config registers based on current media.