🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #10465

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

#10465
From: Claudiu Manoil
Date: Tue, 03 Nov 2026 14:09
41 lines
10681 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>
---
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 7f1f47ea2ee41..71f272d8a2965 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: <e01cc93899ec6e774a568c72d1f38788f65c8577.1793712309.git.claudiu.manoil@nxp.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-355707-linux-kernel-netdev=dewy.ru
References: <cover.1793712309.git.claudiu.manoil@nxp.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-355707-linux-kernel-netdev=dewy.ru
From: claudiu.manoil@nxp.com (Claudiu Manoil)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net-next v3 5/5] PCI: Create OF node for NXP ENETC pseudo-MAC functions
Date: Tue,  3 Nov 2026 16:09:11 +0200
Organization: Usenet Network
Message-ID: <e01cc93899ec6e774a568c72d1f38788f65c8577.1793712309.git.claudiu.manoil@nxp.com>
References: <cover.1793712309.git.claudiu.manoil@nxp.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="3191345"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:C7TcVjxp9eG16QPdNG5FVIs+V04= sha256:+pn9v58EluRjx+0USG7cidojuYYrxs5MB+y86ZwjCSI=
	sha1:ks0iOgCgT/EmlI52cwi4/+VZWO4= sha256:6TbyvDi0kzgFc7buhdkWmyHOMpkocNUe0IqcH9ioxfM=
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 836F9112908; Tue,  3 Nov 2026 17:52:16 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.051
X-Spam-Status: No, score=-3.051 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, 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] 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 64xyNbm4dbNk;
	Tue,  3 Nov 2026 17:52:14 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-355707-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 9FEDA1128FF; Tue,  3 Nov 2026 17:52:05 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id 7C19F298EB; Tue,  3 Nov 2026 14:10:39 +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=1793714987;
	b=dHy579upbHTE0bDx/ebjCXsAPLvdXXbSCroqorsKkb2P9n4pUr0XpvMU2LgMMe9WBmXi
	 g4u8qs9p8bLEvwPY6PBjZ4j3jr7UPsl1u41RzEtilwufKoTjolER5QUMxzwnTByay4SuV
	 /30ET/XQtaUmLEsYVdQgkfyylNnxkL3mZSWX4wy2PHyFowwQDXWhbfrCiWm1vpJFGQxGJ
	 mhKCB8ZtsnQg6MJ9bUd2T2t7FBTUxj6dAYgtrhc2PWJ7WBnW+fMEA9YrizBe4B8gb3/qe
	 q6v2nbltx/QSxPLhZW/BNmPCRG9pLeTyA4UyAFvJTG5igsjlf4t9aizTCPxa9MzNMDA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793714987;
	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=Crq93yTs/1mgPuKwU6cYk5IvUM0GBSs1yjc4BT1dQcM=;
	b=Iipm8uiFOTzBk3ccRYFB8FRdGTOyKa3JRv7oDLEmUzPgLEUSlKdFNj0Uqg+rZ+Hy3yFX
	 95YK5/rFG21GXc+wRmyJeLeAAQY92Ax062jVtoYE3qGAKWu8BYrR/HYYpVQfqQyzY6h3Y
	 vF4aEESF02JXrob7v7qDHJXh7K+S84AqsylQtC8VmlXlOZRKBl+SNPIJINi6mqdAcCBMJ
	 m+qj/VKw5cgCAU7dX5vW12VJbWn8R7Xqjs0iShEjH4MbRusVF5qKZK7v+faZLb5pVMngb
	 lI2th0nFRjkv9dDdPchmAgozfp0HXZU7n9ZzpdKgUhDuyt/OamKiI++3c94MITORQXQ==
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=VAw9n5BZ;
	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 699D2606A324;
	Tue,  3 Nov 2026 14:09:47 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=nxp.com header.i=@nxp.com header.a=rsa-sha256 header.s=nselector2 header.b=VAw9n5BZ
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=92.121.32.54
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793714966;
	b=w8C5+GF2VeVbXlk/P9H6EHLfHGGSn3poeenlU0sqIYE+UKv12jvBImOKIikVNw+/SNX2
	 MRDoTsBHPYW22NCo5dAxoBWACgOUCBaJT0nQYA5P/qPKoNHpR4deIsVoWy2u839WB814n
	 sWsAk76l23205a1TljfITM8Zswz99A9DDx/CbAwY90OWldAJIM5FfCnwzB2gzrileW3VK
	 iMy66GBSH/avOiJT7Xwbu/CxGwbLW4XK9vYJq1laAYvKQnXa913kZFkR/iO1CtjdzUARM
	 7Vd/bvdZIi8mkxUr+oC3LsPR+dkTmEmX/KopgMEhIJy6HoYCaE4NIQGRk3R2BdlIGMQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793714966;
	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=Crq93yTs/1mgPuKwU6cYk5IvUM0GBSs1yjc4BT1dQcM=;
	b=QZl5IzUS86N4t6M5XN1ityH/vd//ddmxHHtZsqiXrRcyM6T64plcUnS8fheKhRd6eOe4
	 8xsplweR00rJu2BAVYdO28QPXUa8WpKrLWb8Ayyg7aHmhntM66OXazSc9CQyd8PlI7eWp
	 EIwk6Ed2oXcsMvFTJOcOQ0UEECrksnjcl5jO/jRK3KPjw7ZbxcXCZmdfYvEcOq67X4yul
	 N0dP1BNNRMkyoehvO3Mz1l/WzL5ADXvxF+HwKUWoGCBXeWJ6QvFvczH4cA67ya2+Z04Pa
	 AiQvU6xYuJIbppTTDkg9mLz6Nn/SXpAYRsx+yXUmhzdBkilF8CWkeWXKirfUGz+nY5g==
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=VAw9n5BZ;
	arc=none smtp.remote-ip=92.121.32.54
X-Received: from inva129.nxp.com (inva129.nxp.com [92.121.32.54])
	(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 05E9F606D835;
	Tue,  3 Nov 2026 14:09:26 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 05E9F606D835
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 inva129.nxp.com (Postfix) with ESMTP id C002F600029F;
	Tue,  3 Nov 2026 15:09:18 +0100 (CET)
X-Virus-Scanned: amavis at nxp.com
X-Received: from inva129.nxp.com ([127.0.0.1])
 by localhost (inva129.nxp.com [127.0.0.1]) (amavis, port 10024) with ESMTP
 id aG3tK7qrVom5; Tue,  3 Nov 2026 15:09:18 +0100 (CET)
X-Received: from inva024.eu-rdc02.nxp.com (inva024.eu-rdc02.nxp.com [134.27.226.22])
	by inva129.nxp.com (Postfix) with ESMTP id 44975600009F;
	Tue,  3 Nov 2026 15:09:18 +0100 (CET)
X-DKIM-Filter: OpenDKIM Filter v2.11.0 inva129.nxp.com 44975600009F
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com;
	s=nselector2; t=1793714958;
	bh=Crq93yTs/1mgPuKwU6cYk5IvUM0GBSs1yjc4BT1dQcM=;
	h=From:To:Cc:Subject:Date:In-Reply-To:References:From;
	b=VAw9n5BZi/5XHZPBrRsOz0kKWN06rd8e73J2FKxlUc0H86vfORx+SwnBgnGjJRr5L
	 Vh60WzT1LM89YxU1TX2BkbQ78yt8apAfehoVlwK4A9ide2I9w0UVZ8QK/faK5t3oE8
	 c0wBobRUmbv5YzqbC5yQBnpWBzilB9afzz2/xKlVxR2eybqiPB0mZhgdVRiKu58/nB
	 iTXP45LT+a9NXIi1pJqqSTWY/X2uQJA+vA/O5uN2CtYIOpWAKQvhq7G9Wo8x8DvcYX
	 dMlPHwnOFmPvmCPgf8RIKTqC2bfMPJo/Wbe17Q6opeXb3ZRc5rEy3lb3hirzVa0xaJ
	 ZRfdpCv35ol9g==
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 BC92C202AF;
	Tue,  3 Nov 2026 15:09:17 +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.1793712309.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