๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #16935

Re: [PATCH net-next v5 2/6] dt-bindings: net: xlnx,xxv-ethernet: Add Xilinx XXV 10G/25G Ethernet

#16935
From: netdev-bot+sashiko
Date: Mon, 16 Nov 2026 04:12
91 lines
11415 bytes
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.

Low priority / nit picks for your consideration:

- [Low] Documentation/devicetree/bindings/net/xlnx,xxv-ethernet.yaml
  blocks the inherited properties that conflict with its stated design:โ€ฆ

--

dt-bindings: net: xlnx,xxv-ethernet: Add Xilinx XXV 10G/25G Ethernet

This commit adds a dedicated schema for the Xilinx XXV 10G/25G Ethernet
subsystem, which has an in-core PCS/PMA and uses an external AXI DMA or
MCDMA controller. It requires xlnx,rxmem and adds the optional
xlnx,has-statistics-counters property. It also disallows phy-handle, phy,
phy-device and pcs-handle, and restricts managed to in-band-status.

> diff --git a/Documentation/devicetree/bindings/net/xlnx,xxv-ethernet.yaml b/Documentation/devicetree/bindings/net/xlnx,xxv-ethernet.yaml
> new file mode 100644
> index 0000000000000..caf582c72a8dc
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/net/xlnx,xxv-ethernet.yaml

[ ... ]

> +  phy-mode:
> +    enum:
> +      - 10gbase-r
> +      - 25gbase-r
> +
> +  # The subsystem has no MDIO bus master and its PCS is in-core, so neither
> +  # an external PHY nor an external PCS can be attached. phy and phy-device
> +  # are the deprecated spellings of phy-handle.
> +  phy-handle: false
> +  phy: false
> +  phy-device: false
> +  pcs-handle: false
> +
> +  managed:
> +    const: in-band-status

[Severity: Low]
Should fixed-link also be set to false here?

fixed-link comes in through the ethernet-controller.yaml $ref in the same
way as the other blocked properties, so unevaluatedProperties: false does
not reject it. ethernet-controller.yaml also does not make fixed-link and
managed mutually exclusive. Its only dependencies entry is pcs-handle-names
requiring pcs-handle.

The commit message and the binding description both say "the link is
always managed in-band". Even so, this schema accepts two configurations
that go against that.

The first is a node with fixed-link alone. In drivers/net/phy/phylink.c,
phylink_parse_mode() checks fixed-link after the in-band default:

	if (pl->config->default_an_inband)
		pl->cfg_link_an_mode = MLO_AN_INBAND;

	dn = fwnode_get_named_child_node(fwnode, "fixed-link");
	if (dn || fwnode_property_present(fwnode, "fixed-link"))
		pl->cfg_link_an_mode = MLO_AN_FIXED;

This overrides the default_an_inband = true that
axienet_xxv_phylink_set_capabilities() sets in the XXV driver patch later
in this series. Carrier would then come from the emulated fixed state, not
from the PCS status that axienet_xxv_pcs_get_state() reads.

The second is a node with fixed-link plus managed = "in-band-status". The
binding allows both properties, but phylink_parse_mode() rejects the
combination:

		if (pl->cfg_link_an_mode == MLO_AN_FIXED) {
			phylink_err(pl,
				    "can't use both fixed-link and in-band-status\n");
			return -EINVAL;
		}

So the device fails to probe from axienet_probe()->phylink_create(), even
though dt_binding_check accepted the node.

Later patches in the series don't change this binding file, so the gap is
still there at the end of the series. Adding "fixed-link: false" next to
the other blocked properties would close it.

-- 
Sashiko AI review ยท https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261114182947.2908628-1-suraj.gupta2%40amd.com
Technical Details
Message-ID: <179480234767.3136.1383853926077576761@kernel.org>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-364046-linux-kernel-netdev=dewy.ru
References: <20261114182947.2908628-3-suraj.gupta2@amd.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-364046-linux-kernel-netdev=dewy.ru
From: netdev-bot+sashiko@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v5 2/6] dt-bindings: net: xlnx,xxv-ethernet: Add
 Xilinx XXV 10G/25G Ethernet
Date: Mon, 16 Nov 2026 04:12:27 +0000
Organization: Usenet Network
Message-ID: <179480234767.3136.1383853926077576761@kernel.org>
References: <20261114182947.2908628-3-suraj.gupta2@amd.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1976482"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:79Hy0b/0aID/DHPxQWC8/9Y3mc4= sha256:rLeN9nKQUcpJAmxTijzfdU/LxzVxH7q+MObaLrQoMno=
	sha1:GWBW9s+nNtI9nGuCDeejgkkWUjg= sha256:gIySAmNeSyl893v8KrRNgSjwXdFNmuWcw8XIxC3AhdI=
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 EA574114B1F; Mon, 16 Nov 2026 07:12:56 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, 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 QcwxhOASmQmW;
	Mon, 16 Nov 2026 07:12:48 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-364046-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 60B99114B0F; Mon, 16 Nov 2026 07:12:39 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id E924831FD3; Mon, 16 Nov 2026 04:12:32 +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=1794802350;
	b=j5Oe8bL85HdhPY4ACVI+DLl4nomFulht5KnXANgMB2L67ZufcV3dS7kOvG3Yd7YwFT6v
	 T1ZGz9XGfKINSFlJ8JV1VscN16BxN2/GQ0YQIiD3qiCtAL+q4UfH+GUKGh3eJvH6wNzhD
	 8+Rq7gJKIflBHiPCtjmW3rZWoEiOC6pSqt25J/piH9K4h0ABJrfSHkc1tRnUAZarxuSCF
	 t4+jcTT/yR6e50CeJagm54WfYOPtSph5+k4Q+4vQ5FMl63wfaVzYABvBOo7RtGFVvTsGe
	 mjivx0GQRzlU50s9hCWdML7WulGf1lXoTpJ0s1olwWaYdyTxzqm1VRu5b3stuSk99DQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794802350;
	h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc:
	 Date:Message-ID:In-Reply-To:References:X-sashiko-severity:
	 Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version;
	bh=NHMGWMgewe8kC7ESdHx6pfUaRaII6jAZvHzMMG3ecVY=;
	b=YlTr4BFOQ4kjkdxTLD//uWqtlFn18295WHqKE8SwIL9GecTPuuxykhTFhZjBPx0RnEaW
	 paeFcTZBbHYY6c8zVoR3p7Vf0fIz7kPf+tVTygEgGjD3rCJoMV+EUHLHfMGbFAx5f6lua
	 HWknBxMwgyPZ819WT41fUZsR+QL6KtuIBgq/TeLsHWX50csijYv6Om1mbA3pvxV0cb3Ka
	 Ogm+KCTkugU24ymMDhgN6jRQeQ5nslMS9QZOXKbsp/aIXwq8FdzRmOr0lhK3BqCisKl7A
	 TNQxEv8fH9Bxzq7gKbR1DnTTFFhfD2BlE/D/dIHN1bMHvrhGigb4JOPQAuzG+5JSmHw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=QWcihlbp;
	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 54238606A889;
	Mon, 16 Nov 2026 04:12:30 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=QWcihlbp
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794802349;
	b=Vz0+BSxmIFQ5R291l6YT8yCUTQ3fS4dV22upB3OBCD0xYfwdWscbFj/IbQppZNoy9F55
	 LVDjSnE4j6OnnmTYDqmvb2dJjt4obGkpRnmbeOtUgfZ0oEBL4af0uhFqUi/dgHfpeSjgy
	 xaSi4GMYGI8tOihqT71rlJ/PykeahbRHqApZFMmVD2v7gU6WOUBJmDowbvq+CPJypcDoh
	 UlsKMWwmH3oOCobXxQQxTdFXYODxo6v+F+C4U1O80Fj/aP2Z4U6Re83qy9ANle+9QW4tS
	 c4FqwTNZeT6OUSEtcI90JtKgmSqskNAAgMx+JJl47+sETbkpoNg5KY6BIWGYYu07zaw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794802349;
	h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID:
	 In-Reply-To:References:X-sashiko-severity:Content-Type:
	 Content-Transfer-Encoding:MIME-Version;
	bh=NHMGWMgewe8kC7ESdHx6pfUaRaII6jAZvHzMMG3ecVY=;
	b=XUdi5YPoA1O4ZO/1XBCu5YuspDtdnktIM8oNQ7MEEZFR4BJ/scad2icG3nLX0Q/sh/TQ
	 m1LH6WcPLsgFwEoUc6Hfs5U2yT16fGpeNNSYK0vBFzn2gIchX/UL8srcwFVaBsRs17UTc
	 d1cMcxyDx+0BgFtDrydcB5qcw+lR32iAmeMUG1fxKj6uMYp/WgCxMwwua+jeOJNiO3d8A
	 t9zXI9oVGoJuOKwlhOkf4HG/mP5/kqFsOLK0yqk4eFUNTZnnC1zNQuKSJdfOMiw7xBdOH
	 /gclbFWMRPICcc2KjhzGzlNXxmzTpj6ABafUdFv7tf/ZS9C/m6LhG9s3XCMZWTAMieg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=QWcihlbp;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 74500606A33A;
	Mon, 16 Nov 2026 04:12:29 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2AC301F000C4;
	Mon, 16 Nov 2026 04:12:28 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1794802349;
	bh=NHMGWMgewe8kC7ESdHx6pfUaRaII6jAZvHzMMG3ecVY=;
	h=Subject:From:To:Cc:Date:In-Reply-To:References;
	b=QWcihlbpgfpt2SpuJ80O42O4m98vSHiyI3tHOEK5h82H6L2fGaVPdwHb1EuhqbxCu
	 K48PXFgTtPpZwIpp+VSYxR6iLzf0gN5mbcTKS18F0mnfDIFrg64xzrwEEsmmVOHlVh
	 N333wOgkynOVOjFdwuHSaU+F/eQ0zyLfpc7L3SZdAt4AaJxTEVyhfmoEtFynZMcQJ2
	 mbzAUxmqhhkPGPifgO9xo120qs0D6XqP8gYoJVG7HQljiRGbdKW/Y4VaSsrGZuLrVA
	 tCxLmJpHPLHYBwgI/CXuEd5R40wirsBqDfav9zgYpvVp3PxNCdNTaNvk2EcgYhlFof
	 zZjEvHSdIObYw==
X-Cc: radhey.shyam.pandey@amd.com, andrew+netdev@lunn.ch, davem@davemloft.net,
 edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, robh@kernel.org,
 krzk+dt@kernel.org, conor+dt@kernel.org, michal.simek@amd.com,
 linux@armlinux.org.uk, netdev@vger.kernel.org, devicetree@vger.kernel.org,
 linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org
X-In-Reply-To: <20261114182947.2908628-3-suraj.gupta2@amd.com>
X-sashiko-severity: Low
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