From nobody Tue Jun 23 19:11:35 2026 X-Original-To: dev-commits-src-all@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 4glF6b4Jkrz6hwkZ for ; Tue, 23 Jun 2026 19:11:35 +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 "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4glF6b1sTrz3xTH for ; Tue, 23 Jun 2026 19:11:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1782241895; 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=FYnIGVGCjoVNsKBccjrQSqrcwdkKSYLXUYdpNx+Bhao=; b=mF9wESSoXOvSr1qQH86w6CovVZ2MQ5MG78lU+dQpQbsLaYPE+vhvpgmd69gphnvCPWxn/G GvI+BHAn3MwLTD/DDMR6vS3Y6ihkgsFbHsP1cMEuxmxWR2dNqBYDCrGpuAj2AD0pkuJOWg P8q9O+1wtlRUSdN0UX5KZdQGkdTL3F+cjuUfHVG1vml6ov9HpMRRGDFPx9I9RETXAxnMcb q8iJ+CuOTWCLEfniVRBCPOsPmiXDLR02GyS/DaeeRLhii5rFuXpEMWs4ei1baX5Tsm4Efp TT+zfIAJMxomr92J3Mcx1IOPichSSkUuhv0A13Ep0QSotW1uao6HBUhnXK0eyw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1782241895; a=rsa-sha256; cv=none; b=WDqRHG9JiWNgfmNXtYWJbOmAi7HAXNn7DJCVWJ+AQbiTPRR5EvMzB399kxgnFIBdXpok5d HdCYSA/aJ1LkxsYWW34f/qKnaMgmMGvL1M4+JYIMMhE//3dnaO/2FJPfFf/RrvDcbMDb15 2aK1BbL8E1GNoj7L/yX5710gjB6tsSdfRCa6w1JxxK73wEric6MsV6vgZ/glZ398QxhUtS YPb2jxKRqAXl8lUTvZasTSc8l/2i1p3Ru0i5jTTQk4OTRIjTxoSGf7gAUU8qGSOutgfGNc pWHIVaz95rvuMgO3WWMP3JPjMCNXjovLwxeId5EdHiuTHsDjGg4EsfiZf9DoeA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1782241895; 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=FYnIGVGCjoVNsKBccjrQSqrcwdkKSYLXUYdpNx+Bhao=; b=J/lUZNnKvHTBexoVd86C2/cDqk1CAT/1Em39NA60MU2iMoUvqgR+YUhFoSeTa0SJcEIX9C ulcHTGGuRN0Ba43putg5d8p00Reh6wDI9ezMHcpPDghord62OcHKYFF/Rzg5Do6XVbuqjQ 6toNRMk8qfI3d4a1lsibyoSpLf6f1BJOFQPYzfk8B196vH6DT9m8czLlHqyVGpDgazyy7w anuHPx+HAQSCehnB4yFGePIAoADFpvJtzy7cpexvJbyz8EXl7QnOaJK8oMv3nBtbQmCNcj A/sJH9iuZjIYMFYyCsowWRiCBpuApkk0h24zJzNX4TLf/w/oZfDYCjk7gZWG8g== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4glF6b0l7KzmMx for ; Tue, 23 Jun 2026 19:11:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 40b8c by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 23 Jun 2026 19:11:35 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: 10f33a860388 - stable/14 - LinuxKPI: Check the devclass of the parent device in dev_is_pci List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 10f33a86038833df9971471960423105325e33f2 Auto-Submitted: auto-generated Date: Tue, 23 Jun 2026 19:11:35 +0000 Message-Id: <6a3ada67.40b8c.200dbbae@gitrepo.freebsd.org> The branch stable/14 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=10f33a86038833df9971471960423105325e33f2 commit 10f33a86038833df9971471960423105325e33f2 Author: John Baldwin AuthorDate: 2026-05-18 18:44:00 +0000 Commit: John Baldwin CommitDate: 2026-06-23 16:08:31 +0000 LinuxKPI: Check the devclass of the parent device in dev_is_pci Reviewed by: bz Fixes: c41d83548b6c ("LinuxKPI: pci.h add more defines and functions") Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D57066 (cherry picked from commit 6a043d0814a29e756f5d26e7b59a360e1d6dfa45) --- sys/compat/linuxkpi/common/include/linux/pci.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/compat/linuxkpi/common/include/linux/pci.h b/sys/compat/linuxkpi/common/include/linux/pci.h index 381ad65febe5..247057f0fedf 100644 --- a/sys/compat/linuxkpi/common/include/linux/pci.h +++ b/sys/compat/linuxkpi/common/include/linux/pci.h @@ -384,8 +384,8 @@ int _lkpi_pci_enable_msi_range(struct pci_dev *pdev, int minvec, int maxvec); static inline bool dev_is_pci(struct device *dev) { - - return (device_get_devclass(dev->bsddev) == devclass_find("pci")); + return (device_get_devclass(device_get_parent(dev->bsddev)) == + devclass_find("pci")); } static inline uint16_t