🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #466

Re: [PATCH net-next 3/4] dt-bindings: net: qcom,ipq9574-ppe: Add IPQ5332 support

#466
From: netdev-bot+sashiko
Date: Thu, 08 Oct 2026 03:31
101 lines
9067 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] The IPQ5332 port limits (`"^ethernet-port@[3-6]$": false` and
  `reg: maximum: 2`) apply only under the `ethernet-ports` container…

--

dt-bindings: net: qcom,ipq9574-ppe: Add IPQ5332 support

This adds the qcom,ipq5332-ppe compatible to the IPQ9574 PPE binding. It
adds an optional GCC sleep clock and a second EDMA reset, and lowers the
minimum interconnect and EDMA interrupt counts. New per-SoC if/then blocks
constrain those counts, and limit IPQ5332 to ethernet-port@1 and
ethernet-port@2.

Link: https://lore.kernel.org/r/20240829082830.56959-7-quic_varada@quicinc.com
Link: https://lore.kernel.org/r/20240110112059.2498-3-quic_luoj@quicinc.com

> diff --git a/Documentation/devicetree/bindings/net/qcom,ipq9574-ppe.yaml b/Documentation/devicetree/bindings/net/qcom,ipq9574-ppe.yaml
> index 1a78e2c82b90c..29dd34210ac89 100644
> --- a/Documentation/devicetree/bindings/net/qcom,ipq9574-ppe.yaml
> +++ b/Documentation/devicetree/bindings/net/qcom,ipq9574-ppe.yaml

[ ... ]

> @@ -238,6 +255,65 @@ required:
>  
>  allOf:
>    - $ref: ethernet-switch.yaml
> +  - if:
> +      properties:
> +        compatible:
> +          contains:
> +            const: qcom,ipq5332-ppe
> +    then:

[ ... ]

> +        ethernet-ports:
> +          patternProperties:
> +            "^ethernet-port@[1-2]$":
> +              properties:
> +                reg:
> +                  maximum: 2
> +            "^ethernet-port@[3-6]$": false

[Severity: Low]
Is the IPQ5332 port limit enforced when the node uses "ports" as the
container name instead of "ethernet-ports"?

The new constraints only apply under ethernet-ports. The binding also
pulls in ethernet-switch.yaml through allOf, and that schema accepts
either container name:

Documentation/devicetree/bindings/net/ethernet-switch.yaml:
    patternProperties:
      '^(ethernet-)?ports$':
        ...
        patternProperties:
          '^(ethernet-)?port@[0-9a-f]+$':
            type: object
    ...
    oneOf:
      - required:
          - ports
      - required:
          - ethernet-ports

The referenced schema evaluates "ports", so the top-level
unevaluatedProperties: false in qcom,ipq9574-ppe.yaml does not reject it.
The PPE binding also does not list ethernet-ports in its required list.

So an IPQ5332 node like this would seem to pass dt_binding_check:

    ports {
        #address-cells = <1>;
        #size-cells = <0>;
        ethernet-port@3 {
            reg = <3>;
        };
    };

That would not match the commit message, which says IPQ5332 takes "only
ethernet-port@1 and ethernet-port@2".

The same gap already lets nodes skip the shared per-port clocks and resets
requirements for IPQ9574. The earlier patch in this series that tightened
the port node constraints also covered only ethernet-ports.

Would it make sense to forbid ports (for example ports: false), require
ethernet-ports, or apply the constraints to both spellings?

[ ... ]

-- 
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261005152915.101780-1-mail%40tk154.de
Technical Details
Message-ID: <179143027694.434549.10144875217597591854@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-342708-linux-kernel-netdev=dewy.ru
References: <20261005152915.101780-4-mail@tk154.de>

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-342708-linux-kernel-netdev=dewy.ru
From: netdev-bot+sashiko@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next 3/4] dt-bindings: net: qcom,ipq9574-ppe: Add
 IPQ5332 support
Date: Thu, 08 Oct 2026 03:31:16 +0000
Organization: Usenet Network
Message-ID: <179143027694.434549.10144875217597591854@kernel.org>
References: <20261005152915.101780-4-mail@tk154.de>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="794903"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:P735QAK7pz9mPZo8Pr4s3iqEmpM= sha256:MOW+U80t6KSzgm/MTOYEFBwZCvYgpuS2J+TDcD6pHbg=
	sha1:b0nnl7onnQAnNVKVsB2eQJ2FbR8= sha256:ycez2jc7yTx9XCDcohQUxkhDf+2WTQBC60HnlOLnhv8=
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 D65DB10F2E3; Thu,  8 Oct 2026 06:36:49 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -0.24
X-Spam-Status: No, score=-0.24 tagged_above=-9999 required=6.31
	tests=[DCC_CHECK=1.1, 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, 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 P9lwaealBzWV;
	Thu,  8 Oct 2026 06:36:46 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-342708-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 734A910F2DC; Thu,  8 Oct 2026 06:36:43 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by tor.lore.kernel.org (Postfix) with ESMTP id D5F0A2DCF9; Thu,  8 Oct 2026 03:31:31 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 0721837DAA9;
	Thu,  8 Oct 2026 03:31:20 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="dNCCewUn"
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 D11BE372071;
	Thu,  8 Oct 2026 03:31:18 +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=1791430279; cv=none; b=E/fEET7F8zleytgY05D6SIteFdV7yyESj7nsDorZ4WpYKgnpksloVkU3eXQE6AHmeDLsRarrvYa9uD4LY0tIPzEm9ZGdlFame+25gsp8TJAQDm19ddjsok6h+PJGzHfGUEpsRiwmzrh6BKV5ZuAesmBLfMr28vtb1S/q2W1twko=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1791430279; c=relaxed/simple;
	bh=jGnf4YTTbgp3pyVWYzvtTpjTWilXRuuOmq4er15KPj4=;
	h=Subject:From:To:Cc:Date:Message-ID:In-Reply-To:References:
	 Content-Type:MIME-Version; b=ltUUO7OmJ3Gvox+Mv5guvE6/hcoaX2JJ5CDDvduSVKQr2CLAzaigGHUpj5EXdlKAS1xJGzX/9tFNKuSRGO1RHS2Obk50vF2B8iB810hisyJI1R5GzYs6gQz5W0jXa4rrbfEBZeqwbZVGmK01V8C/7m6+fjFCcpTpGDq7PgqUHHI=
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=dNCCewUn; arc=none smtp.client-ip=100.103.45.18
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 604BF1F00893;
	Thu,  8 Oct 2026 03:31:17 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1791430278;
	bh=4PImF/bcS4wg1Tz3UGd/A5bh6Tl7WV37bYZRssHDge0=;
	h=Subject:From:To:Cc:Date:In-Reply-To:References;
	b=dNCCewUnYkD6yVPU35QbYs1ZhKJZtHu/g6xm9yOkpbF/+5gpSHNEO0gaClqOIjFlH
	 +I+cQ8tVvw4Q1TYJXSyNRkdnmlZ0aAB4UFZZIaLEzS6uI3il+egKrKwr5+FeJ9s4rk
	 Gv+AyELZvu9Cr58VU6ngInh/i778blWf6ZFSmR0u5Gv6Y2HQC0qAPfHCvUY/ghfXvl
	 LKVeDN/cvC+yEwueD9cOZr2FWHt8WIzut10SQ9JPwZ2k8tqFvK5ecVXCveERJpKerE
	 9XBdspsKZvIZCvNylx1c2yT60oN5evOJkdxkOToODhYIrd6cQoIcwHF8UEIhhzTYh8
	 UTe36DoyZezuQ==
X-Cc: netdev@vger.kernel.org, jie.luo@oss.qualcomm.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, horms@kernel.org,
 corbet@lwn.net, skhan@linuxfoundation.org, rdunlap@infradead.org,
 quic_leiwei@quicinc.com, quic_suruchia@quicinc.com, quic_pavir@quicinc.com,
 linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
 linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org
X-In-Reply-To: <20261005152915.101780-4-mail@tk154.de>
X-sashiko-severity: Low
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>