🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #1341

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

#1341
From: Bjorn Helgaas
Date: Fri, 09 Oct 2026 15:29
41 lines
7236 bytes
On Fri, Oct 09, 2026 at 03:40:34PM +0300, Claudiu Manoil wrote:
> 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 applying a device-tree overlay onto 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>

> ---
>  drivers/pci/quirks.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
> index de9bbccda21f..86f0a182224b 100644
> --- a/drivers/pci/quirks.c
> +++ b/drivers/pci/quirks.c
> @@ -6391,6 +6391,8 @@ DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_XILINX, 0x5020, of_pci_make_dev_node);
>  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_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: <20261009152947.GA976116@bhelgaas>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-343773-linux-kernel-netdev=dewy.ru
References: <2706e800774bb7e72992a8cc9d17ce7be039f046.1791548316.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-343773-linux-kernel-netdev=dewy.ru
From: helgaas@kernel.org (Bjorn Helgaas)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v1 5/5] PCI: Create OF node for NXP ENETC
 pseudo-MAC functions
Date: Fri, 9 Oct 2026 10:29:47 -0500
Organization: Usenet Network
Message-ID: <20261009152947.GA976116@bhelgaas>
References: <2706e800774bb7e72992a8cc9d17ce7be039f046.1791548316.git.claudiu.manoil@nxp.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="1138483"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:pKUSuk5LDsxKLEzEsgwDd98NU7I= sha256:R6HWlM38iU4DSEW2qbTHNqE/xtQlEveR01lA1koKAhg=
	sha1:+yxGnmT9UQF32CcpSufP1vcLbaE= sha256:/2Ykqk5ElyIBt61UhJjpoLg2DaUNkQ5WxYwXWyc4Iy8=
Content-Disposition: inline
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 BBEDF10F71F; Fri,  9 Oct 2026 18:47:37 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.641
X-Spam-Status: No, score=-3.641 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.241, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	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=kernel.org
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 FPvdZ8cx7ya2;
	Fri,  9 Oct 2026 18:47:34 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-343773-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 9FA9510F716; Fri,  9 Oct 2026 18:47:28 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by sea.lore.kernel.org (Postfix) with ESMTP id CAB05332A7; Fri,  9 Oct 2026 15:29:50 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id F00AA4E56EB;
	Fri,  9 Oct 2026 15:29:49 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="XcsICqKP"
X-Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id E165E4E141D;
	Fri,  9 Oct 2026 15:29:48 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1791559789; cv=none; b=AoD5m0+/rkjObkrm8/yGjRQ+0cTkF7gLVRUYtWzBDtaFYQdCRldqj89ZAdJ92yEF0qNixEPghnamfEHrEXSNF3CAcaYaLt0fvHbrds8UjLkTKeUEV9KkEAg41gLCatAge7LNYL0qf4DBt2i7as2yx4jAZwY1ibrGfRq5iw+v4uU=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1791559789; c=relaxed/simple;
	bh=m5Oxfi8s5vZu+bzQS+WRYvMM6s6DS+tla1qoaKR9uBU=;
	h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type:
	 Content-Disposition:In-Reply-To; b=Qko3Z3RoXhnagll7ONK3pJHa9pOfL9QYwLxtUGbLZNqpqcuJpTy3/4bjrWe8sTdYQTJdBoh6Yr+sMUW1xTCKFhktQZ0Ibr2uVvsXy/3jgkm7VwrEKqbu70uJfo19Cz8ZfWVK7vKR60UiHzTrMa4GFXXZHzgRufUSlz2sCZehzOY=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=XcsICqKP; arc=none smtp.client-ip=100.103.45.18
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 961691F000FF;
	Fri,  9 Oct 2026 15:29:48 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1791559788;
	bh=rtlq/9YcmXw8NmebrTfGcIs8U33OKDOfAPBwtnMEh1E=;
	h=Date:From:To:Cc:Subject:In-Reply-To;
	b=XcsICqKPqnQSdKfgvRh3AoIIbXjevADj+oCFJqtTe+2F3ekENxE1hgxJPf/KkZvNP
	 LyVTI6pOBs1gTKjV5J+qjTKGE3teS8TpsQVl5y5qjsq/DjPEzuGXRrJEJ0hBqknYGG
	 0JBOe1inPsSaXG9nJR8gkNA/0oKvx2L09YDFZdUYQxIkhL81SUiAWOXwbet8BU8XXP
	 B95JzLmcu+kH8KG8ycdTVv6aE7zCDLNoPaa04sd+QmnIHPkfLmjoC4EcpdqRn1z14M
	 ZfOtMEom4O440aMhI4UWv826HFjfD7j9IqnUgAZZmtGjnvOoU4OGjjnH3LfMb6FpzO
	 Qe3tQOwFA0NWQ==
X-Cc: netdev@vger.kernel.org, s32@nxp.com,
	Bjorn Helgaas <bhelgaas@google.com>, linux-pci@vger.kernel.org,
	linux-kernel@vger.kernel.org
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-In-Reply-To: <2706e800774bb7e72992a8cc9d17ce7be039f046.1791548316.git.claudiu.manoil@nxp.com>