🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #15815

[PATCH net-next v4 6/6] PCI: Create OF node for NXP ENETC pseudo-MAC functions

#15815
From: Claudiu Manoil
Date: Fri, 13 Nov 2026 15:02
42 lines
10664 bytes
NXP ENETCv4 pseudo-MAC (PPM) ports can be probed as pure PCI endpoints,
without any "ethernet" node in the static device tree. The ENETC4 driver
describes their fixed link by attaching a fixed-link node to the PCI
function's own OF node, which requires that node to exist.

Request the PCI core to synthesize a per-function OF node for these
devices by registering of_pci_make_dev_node() as a final fixup, following
the existing precedent for the Xilinx, Red Hat and EFAR devices. The
helper is a no-op when the function already has a static OF node, so this
has no effect on platforms that describe ENETC via static DT. It only
takes effect when CONFIG_PCI_DYNAMIC_OF_NODES is enabled.

Both ENETC4 PCI device IDs are covered (0xe101 and 0xe110), since either
can be instantiated as a pseudo-MAC port on S32N79.

Signed-off-by: Claudiu Manoil <claudiu.manoil@nxp.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
---
v4: none
v3: none
v2: none (reworded the overlay reference to match patch 1's fixed-link
    approach; no functional change)

 drivers/pci/quirks.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index 7f1f47ea2ee4..71f272d8a296 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -6563,6 +6563,8 @@ DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_XILINX, 0x5021, of_pci_make_dev_node);
 DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_REDHAT, 0x0005, of_pci_make_dev_node);
 DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_EFAR, 0x9660, of_pci_make_dev_node);
 DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_TOSHIBA, 0x0220, of_pci_make_dev_node);
+DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_PHILIPS, 0xe101, of_pci_make_dev_node);
+DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_PHILIPS, 0xe110, of_pci_make_dev_node);
 
 /*
  * Devices known to require a longer delay before first config space access
-- 
2.34.1
Technical Details
Message-ID: <e256f380f2f1bc88752ee261101cc83ad84ebedd.1794581338.git.claudiu.manoil@nxp.com>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-362725-linux-kernel-netdev=dewy.ru
References: <cover.1794581338.git.claudiu.manoil@nxp.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-362725-linux-kernel-netdev=dewy.ru
From: claudiu.manoil@nxp.com (Claudiu Manoil)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net-next v4 6/6] PCI: Create OF node for NXP ENETC pseudo-MAC functions
Date: Fri, 13 Nov 2026 17:02:37 +0200
Organization: Usenet Network
Message-ID: <e256f380f2f1bc88752ee261101cc83ad84ebedd.1794581338.git.claudiu.manoil@nxp.com>
References: <cover.1794581338.git.claudiu.manoil@nxp.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1378036"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:ShdRj4LAir6Im2spzjfH0HJPcjI= sha256:yRzoGUIHuMym1y5PDfWbrk8VXHVcLVGR15O375RaQt4=
	sha1:xNezL754fgPqmSg9algeRsdP1+4= sha256:oDsnW38VNsUqUIi4SKlnOK2ta8ngK5a9j1uuiW/Uk9Q=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id C4E801145A1; Fri, 13 Nov 2026 19:04:54 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.15
X-Spam-Status: No, score=-3.15 tagged_above=-9999 required=6.31
	tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
	HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
	RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
	URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=nxp.com
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 2kEP4feArcS5;
	Fri, 13 Nov 2026 19:04:49 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-362725-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=nxp.com
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id 78969114564; Fri, 13 Nov 2026 19:04:38 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sto.lore.kernel.org (Postfix) with ESMTP id D8C196C42EA; Fri, 13 Nov 2026 15:18:31 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1794583025;
	b=Zxkti2lO+vdfgl9hJQLz2TwtAghL9gcARBsYnrfIc+gCplqmIO/LlRU2G/pbAO8+TmnF
	 KBICDh8Io4nv7IikqXLlKk0IJTsi3/x5S5s1ai/G+3rs5rgWiVWh2WmzWckXkVCimte0+
	 Y3oSR/N7yN8hG/5FemoqlA8eYo0BZlP1seRTWmI1ouPoZooc93uZepApUXGCRG/9DQHLo
	 rLRgnT5li/uAYo0Gj9DuPJmF5gYfLJUzapGYcRaRImiOedg4ZNW/GBBGO+r5/Ha6naLAH
	 o8dGxSgJ2RNIiF833Sfwyg/I3M/VRxp0xz+UNltYOzIukHENxPQ7DaPtURiI+kQ+36g==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794583025;
	h=X-Original-To:Received:DMARC-Filter:Received:X-Virus-Scanned:
	 Received:Received:DKIM-Filter:DKIM-Signature:Received:From:To:Cc:
	 Subject:Date:Message-Id:X-Mailer:In-Reply-To:References:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Transfer-Encoding;
	bh=uKib2WONiwyAn3NNdrBU0u8Y5Qax9KbCLC9NRfJsdxo=;
	b=5WafIFhku8XOY8iZk7ddoync6t9G4PtHbiIVaxh2N6AS+YeCc/iG6zJCvaIlrmvJb2ty
	 YKMqy7HoImRmfOI7dxNf0WgBYLZDeHxANInVe+Bu3zN24ucSJIFfdbF7Q+bKHS2JdNGhd
	 wo4CoOBsjM+PYLlPJt5WkI3mvhNbHYWGNH5e7A6XNdjJlWSzxI1D1WaYu91jpLK3lhh/7
	 QhdLlXpoKr1lRjzPjoXK69xQEfBfI8uyiQgkk0xwx4TmcZITDPkuEzhNS7dcG1Kz9ewKk
	 hadyWiAWVj6bfbD0EUpkMOBmep7ZUYutjk2+CM5iyjn2n/XoaiEW1loYJ0qdPpX7uSw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=nxp.com header.i=@nxp.com header.a=rsa-sha256 header.s=nselector2 header.b=catQyEcP;
	dmarc=pass header.from=nxp.com;
	spf=pass smtp.mailfrom=nxp.com;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 0139260A3803;
	Fri, 13 Nov 2026 15:17:05 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.a=rsa-sha256 header.s=nselector2 header.b=catQyEcP
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=92.121.32.55
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794583019;
	b=o31tMQNhW6cyJKIyyQD6RMppXRopLgCAceep6HLMbZO7KUSTipk5j9Fhy8B8NN24Gnbi
	 4+xqLaIOgVBl1MlwOTURt5yf8nv88gcctOMg+8TAHQzSCRr4Gd957P/YpLqk5V4jczoQa
	 KF16gLow4WiNobNRISjQchsMkiurxO+o7pdxqIvWeBCpvruvUfaBBJUugJ2gZFlNawkVT
	 3vdv5zxV0XcQMh2cQQCEh1+G2O+0R9TG7c6D34I8Zy2YPbxz6G/ZD5gqCK40a1KhQBWsc
	 BZulXtPpaHe9cppgt5AsPbTaTZdCUn/yP0LrSEduq94e37O4ZUiqyo0s2Q402eLGpZQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794583019;
	h=DMARC-Filter:Received:X-Virus-Scanned:Received:Received:DKIM-Filter:
	 DKIM-Signature:Received:From:To:Cc:Subject:Date:Message-Id:X-Mailer:
	 In-Reply-To:References:MIME-Version:Content-Transfer-Encoding;
	bh=uKib2WONiwyAn3NNdrBU0u8Y5Qax9KbCLC9NRfJsdxo=;
	b=wpe/yPQXu5mVXsxCqH+yQUl1kqHVCzjMXGwW83d6tZFz3wDzshF5mlmMWds0fhV6THdQ
	 NRutFEF9B5P1TapS6xtwL4UuSEQc/qQN5T/xraQuxzbm9nVPi3uYXTnwZKr4psAGmK7AN
	 sgkC0eXXQd48m3uD+2JTBcUMnkf+Awlkk+g6FME3kWZ6GgbZSxPc3psru9FOAxclbAdFL
	 y+uN4JA0JQaecF4QMpBZDDVt6RQhWb9C/x2NuyKjTevfDjtd62Alore0xUs0xoiIyCMmh
	 vM5V3ePoT8JvVnI1XTtvJHnx7+aXvUD0w/w1Y48q5T/WrFX8XbXw+hrfAxFjF8HhoMA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=nxp.com;
	spf=pass smtp.mailfrom=nxp.com;
	dkim=pass header.d=nxp.com header.i=@nxp.com header.a=rsa-sha256 header.s=nselector2 header.b=catQyEcP;
	arc=none smtp.remote-ip=92.121.32.55
X-Received: from inva130.nxp.com (inva130.nxp.com [92.121.32.55])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id A97FD60A2628;
	Fri, 13 Nov 2026 15:16:58 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A97FD60A2628
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com
X-Received: from localhost (localhost [127.0.0.1])
	by inva130.nxp.com (Postfix) with ESMTP id 8C6186088977;
	Fri, 13 Nov 2026 16:12:40 +0100 (CET)
X-Virus-Scanned: amavis at nxp.com
X-Received: from inva130.nxp.com ([127.0.0.1])
 by localhost (inva130.nxp.com [127.0.0.1]) (amavis, port 10024) with ESMTP
 id IPz2I8BUYV7H; Fri, 13 Nov 2026 16:12:40 +0100 (CET)
X-Received: from inva024.eu-rdc02.nxp.com (inva024.eu-rdc02.nxp.com [134.27.226.22])
	by inva130.nxp.com (Postfix) with ESMTP id 2911F6049C64;
	Fri, 13 Nov 2026 16:02:45 +0100 (CET)
X-DKIM-Filter: OpenDKIM Filter v2.11.0 inva130.nxp.com 2911F6049C64
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com;
	s=nselector2; t=1794582165;
	bh=uKib2WONiwyAn3NNdrBU0u8Y5Qax9KbCLC9NRfJsdxo=;
	h=From:To:Cc:Subject:Date:In-Reply-To:References:From;
	b=catQyEcPB79HiDB/y4dFLPIWX0p6qKOiDp8w9qWBCLu4fXV3HY9g4J/ZSS1iXOyw2
	 ar8egmXkVV/8SrRKOTCvr0fTeoY2EUKMj3LQgFULDG92v4A6KluTDItpSelhbKQ3MN
	 wqmrN80aGhPP7xLX26CRr9pQ5rROYOFH6QtI7dklT3eDd+SPqIOvU0TO+ogaerQcgf
	 u58rQtxNGK8H92CDc4jVTRdJ1hmiC0qz4KlkcNXLGUXhq0lFqVNYUBEmurGWHlloFx
	 I3x56DMNvtQJVMIAcEn2jXKPsXpDdr7WrJ4+DiH01WXo8XhNoD2z+0P5ab50HSwGUn
	 mAju/KGy+E6CA==
X-Received: from lsv15141.swis.ro-buh01.nxp.com (lsv15141.swis.ro-buh01.nxp.com [10.162.246.138])
	by inva024.eu-rdc02.nxp.com (Postfix) with ESMTP id 3CBC2202B6;
	Fri, 13 Nov 2026 16:02:44 +0100 (CET)
X-Cc: s32@nxp.com,
	Bjorn Helgaas <bhelgaas@google.com>,
	linux-pci@vger.kernel.org,
	linux-kernel@vger.kernel.org
X-Mailer: git-send-email 2.34.1
X-In-Reply-To: <cover.1794581338.git.claudiu.manoil@nxp.com>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list