From nobody Tue Jun 23 16:28:23 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 4gl9VJ1ZXwz6hhRf for ; Tue, 23 Jun 2026 16:28:24 +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 4gl9VH4ypvz3Myy for ; Tue, 23 Jun 2026 16:28:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1782232103; 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=lTT5jn0cZsTUGFBCkKfXmbdPVx5aHGa6t0FtoUkhaUc=; b=gSLK2Iu6v47XciWIV871FAJ3mEAvrvJalAZtaYB1ySG7y/I0pXP9Ci7t8kESUgacoJ+94q jfBRuq8P3H6VfDsI6AaO4D7DkifqK6vp/Z8KUqWvLE2tCdZ0FwCDbK/73RoS0RGGJqipkh cuR2G8x3IO5M6dtM2Csb90nUqRtZQ/Kd3F0DK9GljTnIA5o4wlx+Q9UIEqH8d7AK5/q28p WaSjCo1AkBe3RTDkW9e0adH0I1r3+YhMJb4B6UW5AVlOgKSrINLkJeoRvU8XVZnI5zV7/K +jynuYKKJ0Vgm3OBQqVNkcManAuFqfJ1QHkSKl4t1f0hnEF3+fbPIvRR9PEj9g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1782232103; a=rsa-sha256; cv=none; b=QuvdFAqmNrTyb/Z7PczwVzVe+tdgBmgPFzKlpQ2vPZWWfE3+FopVXiDJ5/mDMuwmhK0KFs JX1zqSGWkXJlGj1t6sKtazixSCgs5qLlw4MZebijDyU2EeIz8JnaMi3+ju8m3kRbxYGpzi 9BSicUjae702SDMlce8RGMGW9+hYQQmz8HqNlZAhS09LeJcFfVH7nX3yYhNbB9SUvJRJ1y 5vf/rJoj2ZwsFFihX6lyd9eFLe68fNZuFm9NgLIYG2XfoRp0WXv1z7typC/3tXFVJZoDUd nmpD+bRAXc7rgXhNTWv7s41BjD++m5I8rbSNbvlPgnJ4jFPkRn62LA23M9yLlg== 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=1782232103; 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=lTT5jn0cZsTUGFBCkKfXmbdPVx5aHGa6t0FtoUkhaUc=; b=gxox72QK5+/2Egb6guBRnUx9gtBWhKsJ3f3680PO+ohRKHaU9GNgMsr6t0EgkbniNETBXV PE8MJ9NoYqrh5lZG81voFVDWHW9KcS4Rn5XYrh106mqqksrx2xM9VbktsXk86b/rows+QM xlvFdi6IcCkP3mUMYEFrx9ddtBsev0tHpKb0e2Se7Sp2zU1akE6hdrQLM0C4wA76fRs7v/ Dwa9mIUI67xHx+uox5wRZKBQ9KIlnBPDkGmN21mZv382hBpbjjo7jauoIeLL3125LzANcc 8Vp27XNcG6CCwmJKDkRg4vqNy1u8KID1PXZF7J2YX2nbttivokcm2Ljp+i3b1A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gl9VH3llNzhrZ for ; Tue, 23 Jun 2026 16:28:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 268f7 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 23 Jun 2026 16:28:23 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: 36b17708b0db - stable/15 - 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/15 X-Git-Reftype: branch X-Git-Commit: 36b17708b0dbe4e083dc21968f1834a4a8b174b5 Auto-Submitted: auto-generated Date: Tue, 23 Jun 2026 16:28:23 +0000 Message-Id: <6a3ab427.268f7.5f7cf93c@gitrepo.freebsd.org> The branch stable/15 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=36b17708b0dbe4e083dc21968f1834a4a8b174b5 commit 36b17708b0dbe4e083dc21968f1834a4a8b174b5 Author: John Baldwin AuthorDate: 2026-05-18 18:44:00 +0000 Commit: John Baldwin CommitDate: 2026-06-23 16:08:26 +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 5cd87ff091bc..a6ddc02d1947 100644 --- a/sys/compat/linuxkpi/common/include/linux/pci.h +++ b/sys/compat/linuxkpi/common/include/linux/pci.h @@ -399,8 +399,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