๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #5531

Re: [PATCH net-next v2 4/5] dt-bindings: net: maxlinear: add MxL86211C lane mapping support

#5531
From: netdev-bot+sashiko
Date: Tue, 20 Oct 2026 13:36
98 lines
11729 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] REFUTED (baseline decision false; kept only because
  requires_validation=true).
- [Low] The new line `else: properties: maxlinear,lane-asp-map: false` in
  maxlinear,gpy2xx.yaml can never take effect.

--

dt-bindings: net: maxlinear: add MxL86211C lane mapping support

This adds an optional maxlinear,lane-asp-map property to the GPY2xx PHY
binding. The property describes how the physical TPI lanes map to the
MxL86211C analog front ends (ASPs). The patch also extends the existing
else branch so the property is rejected on PHYs other than the MxL86211C.

> diff --git a/Documentation/devicetree/bindings/net/maxlinear,gpy2xx.yaml b/Documentation/devicetree/bindings/net/maxlinear,gpy2xx.yaml
> index a0dfb6192d81b..4323be300c721 100644
> --- a/Documentation/devicetree/bindings/net/maxlinear,gpy2xx.yaml
> +++ b/Documentation/devicetree/bindings/net/maxlinear,gpy2xx.yaml
> @@ -35,6 +35,7 @@ allOf:
>      else:
>        properties:
>          vddp-supply: false
> +        maxlinear,lane-asp-map: false

[Severity: Low]
Can this else branch ever be evaluated? The top-level select of this schema
only matches nodes that carry the MxL86211C PHY ID compatible:

select:
  properties:
    compatible:
      contains:
        const: ethernet-phy-idc133.5400
  required:
    - compatible

The if inside allOf tests the same condition:

  - if:
      properties:
        compatible:
          contains:
            const: ethernet-phy-idc133.5400
      required:
        - compatible

So every node this schema applies to takes the then branch. No other binding
references maxlinear,gpy2xx.yaml, so the else branch has no other way to be
reached.

Other PHY nodes are checked only by ethernet-phy.yaml, which selects by
$nodename and has additionalProperties: true. That covers other GPY2xx PHYs,
and also MxL86211C PHYs that leave out the optional PHY ID compatible because
they are auto-probed.

On those nodes, maxlinear,lane-asp-map: false is never enforced. The
minItems/maxItems, minimum/maximum and uniqueItems constraints are never
checked either, so a value like <0 0> would pass dtbs_check. The problem
would then only show up at boot, when the driver's config_init rejects the
value.

The vddp-supply: false line added earlier in this series has the same
problem. This patch adds a second restriction that depends on it.

Would it make sense to change the select so it matches every node that could
use this binding, or to drop the else branch? Another option is to require
the PHY ID compatible whenever maxlinear,lane-asp-map is present.

> @@ -42,6 +43,21 @@ properties:
>        Regulator supplying the VDDP pin. Its voltage configures the MDIO,
>        MDC, and MDINT pad voltage and must be either 1.8 V or 3.3 V.
>  
> +  maxlinear,lane-asp-map:
> +    description: |
> +      Mapping of physical TPI lanes A through D to analog front ends (ASPs)
> +      A through D. The array index identifies the physical TPI lane, while
> +      its value identifies the analog front end, encoded as 0 through 3.
> +      Each analog front end must be mapped exactly once. Omit the property to
> +      retain the hardware reset mapping.
> +    $ref: /schemas/types.yaml#/definitions/uint32-array
> +    minItems: 4
> +    maxItems: 4
> +    uniqueItems: true
> +    items:
> +      minimum: 0
> +      maximum: 3

[ ... ]

-- 
Sashiko AI review ยท https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261016112033.949026-1-robert.marko%40sartura.hr
Technical Details
Message-ID: <179250338355.3135.16545535633910438190@kernel.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-349322-linux-kernel-netdev=dewy.ru
References: <20261016112033.949026-4-robert.marko@sartura.hr>

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-349322-linux-kernel-netdev=dewy.ru
From: netdev-bot+sashiko@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v2 4/5] dt-bindings: net: maxlinear: add
 MxL86211C lane mapping support
Date: Tue, 20 Oct 2026 13:36:23 +0000
Organization: Usenet Network
Message-ID: <179250338355.3135.16545535633910438190@kernel.org>
References: <20261016112033.949026-4-robert.marko@sartura.hr>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="3867012"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:ZrRX4oOUi1hOD1K8GLNmj8A+708= sha256:GYSsNspkCk6iycFhnCqM1M4CRmgGziccyyvKbpo19sk=
	sha1:zaPnsBcXxPLcNFb9j8nTfneHacY= sha256:qWQpgKFd05f5zbC9mkZz68mlSiTRxqLcR/9QkV0H5JA=
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 56422110D2C; Tue, 20 Oct 2026 16:55:12 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.728
X-Spam-Status: No, score=-3.728 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.329, 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, URIBL_BLOCKED=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 m9taeEqEpjT3;
	Tue, 20 Oct 2026 16:55:09 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-349322-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 sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id 69AD0110D21; Tue, 20 Oct 2026 16:55:00 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sin.lore.kernel.org (Postfix) with ESMTP id 67235323D6; Tue, 20 Oct 2026 13:36:36 +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=1792503386;
	b=Hyl0Zu89MXIXIIiOKA4M+YbAqaaZd7szMgvMCxpwxXBP76EfrVrBHW25PeJ0tgr/SNdp
	 C3S+HNCjoWFsYmXkTKPhmOnlXUtAYM7VHheCsJW3jBvtr0I/K4b8HdwTYaCBFSM/2rb1b
	 fKTOlW85nmo2ghx4qzwwWAW551KyBpUM5y2IEN8cF2HIrcKdGXUWlHAPRUDlzsZ9OpRC9
	 3OC8dcWZavCVVoWNF+rAF961O5SrZLVrrZSZS3GX6mXdVdjlbq/p0UAzMwlu89MdsLDJF
	 cv2hoSLJEm7qo+wxCSVF9wCeAgAjJsb3clC8dZVsJjJoYCfY+EtXcRJddre5Cj/Le1A==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792503386;
	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=6GZlVKtg84GdphSrcXZ8MrYPbKSkMaooWBifDaZ/5pk=;
	b=d2vTDPXUBADUaoPhmARVixQENY47IRor+Ato2U52ie+GawsxRXPfGhxTVEC3hGvUkd7g
	 VeWTEcCFw8h4Ncnfr/gt/zFJcoajzmmV39AbgxokGsPIlzlylG3Y/lP1H/gcpG6oSBoRm
	 r4T4iNko1GqZLVLb27hujz1BT8BO8X8ZCTBm9ObkF5vFUUTYbITIz41upvfuS97WMRAiE
	 xUzRwrbONuyJVWVCuNBcuJ7/ebnTz7IN9tax7Yw0H8Wglm3D44Y1feGyp334BVVzny06r
	 faiLMmWxGDqyvKyeBFRaVZUh0IgAaLLekW8GXBpdnxBBjXaJ2vgsIuY0xe20l3rzodw==
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=ZsLffZX9;
	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 3F64160A2605;
	Tue, 20 Oct 2026 13:36:26 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ZsLffZX9
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=1792503385;
	b=dewfpaQZyd01RUGEeIJ8p4EGKsYkVAVLQTrhbd32zEvK1uSEr2K42ekiQNhHCUzT2Fqm
	 MpkFGdqs+6X5IfV9CfPd2yB4dP7SGDqB551cqNAunwmPgaEAxxTOFtb5RHymWqlLtu8jA
	 UoMA1BoT69+0KQClRrmQJY/uq2wAklZ817y6mDmKe451L7uKj5x/Eqt2L1QbjSym0syLx
	 7WfFMYEq9V5MwBXSSEgUMncT67gyXiitG9OUc6YojctMPXoVaM2nqlaZuunX5lzvyyLHW
	 umuCPPRFhVJsvemL8MF3+BTG2wZhtPgJr2js6vrLPsbppTP3Hkguq5rqmOZenMw1uIg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792503385;
	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=6GZlVKtg84GdphSrcXZ8MrYPbKSkMaooWBifDaZ/5pk=;
	b=LEHu2h+YZctniS8UQbphFsTJoSFsgn7Xtthvr5RKDcVDgpMzEHjoVgXop4uDQMTD7Eh1
	 qy0cL5stKE0YHqptNLdpWB53EjLejbstoVGKRNskAcBJ6pb4MgZar5hp7Db3pDioZYuLP
	 ckDZqh7NyrMcj0SElWfCDE/BZpK9NZzTbFSpkubcQGVIlfQxIq2T3t5bhgMi//jusBbQP
	 WSk8mY0jR58KmjcuJ4kCm9/rQFI5Sm2Sg1QQa/S1JphfvMlgvV/COyrYj1wH4yNVy9vA0
	 cNNaLxJWIQWHPU1YoV/6RGlAaC8PYJJ62XLnuRNSpb0b0dokAOzHWS09mpyn7f+csDg==
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=ZsLffZX9;
	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 1E915606A322;
	Tue, 20 Oct 2026 13:36:25 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 02E001F000C5;
	Tue, 20 Oct 2026 13:36:23 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1792503385;
	bh=6GZlVKtg84GdphSrcXZ8MrYPbKSkMaooWBifDaZ/5pk=;
	h=Subject:From:To:Cc:Date:In-Reply-To:References;
	b=ZsLffZX9d0Mb8hUB1TnrDvczfOoYlwK/kccYoSaWEZWVsnp2xFPhYusZLPrf5iJ0i
	 wYNhzUR+wCghWlH7Rv20pL1Z8ddJKJhnK03XidJ+m+4G5uABbbCaF7OmFYJHehZPb5
	 /POf55g/hvssAe/JtFynZxzrsM5EVZjv6fjZfdq9uCpWa+5VoVJ3Y3/x1OOn3xhKHp
	 KmhE2ky6r4E9sKFcCyc4YONqb65I7NuvEzWjVsEcpkHxnvTbTZOOkcT+jzw/9Z4Im3
	 yNlxE/6HCdFj64McVrbAgUM86uBCKXCpSaa+Kugkl2JwwOX8iLgxIzWuTu8/mjUcD6
	 rS+4DyMoXwNAQ==
X-Cc: 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, lxu@maxlinear.com, hkallweit1@gmail.com,
 linux@armlinux.org.uk, michael@walle.cc, netdev@vger.kernel.org,
 devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, lrosu@maxlinear.com,
 luka.perkov@sartura.hr
X-In-Reply-To: <20261016112033.949026-4-robert.marko@sartura.hr>
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