From: willemb@google.com
To: netdev-bot+sashiko@kernel.org, krzysztof.kozlowski@oss.qualcomm.com
Cc: hauke@hauke-m.de, andrew@lunn.ch, olteanv@gmail.com,
davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org,
pabeni@redhat.com, robh@kernel.org, krzk+dt@kernel.org,
conor+dt@kernel.org, matthias.bgg@gmail.com,
angelogioacchino.delregno@collabora.com,
woojung.huh@microchip.com, UNGLinuxDriver@microchip.com,
jensemil.schulzostergaard@microchip.com, ansuelsmth@gmail.com,
arinc.unal@arinc9.com, Landen.Chao@mediatek.com,
dqfext@gmail.com, sean.wang@mediatek.com, daniel@makrotopia.org,
marex@denx.de, john@phrozen.org, netdev@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org
Subject: Re: [PATCH net-next 2/2] dt-bindings: net: dsa: Flag unexpected ethernet ports
Date: Mon, 30 Nov 2026 09:50:34 -0500 [thread overview]
Message-ID: <willemb.3ade2fe24e53d@google.com> (raw)
In-Reply-To: <179545031306.3135.11482802242328622537@kernel.org>
netdev-bot+sashiko@ wrote:
> Thank you for your contribution! Sashiko AI review found 1 potential
> issue(s) to consider.
> Critical: 0 · High: 1 · Medium: 0 · Low: 0
> If you believe none of the issues are legitimate, please reply to each
> issue of Medium severity or higher and explain why the AI is wrong.
> If any of them are legitimate and you plan to respin, please let patchwork
> know by including "pw-bot: cr" as a separate line at the end of your reply
> (one such reply per series is enough).
> - [High] The fix is incomplete because it skips a sibling DSA binding
> that has the exact defect described in the commit message.
> --
> dt-bindings: net: dsa: Flag unexpected ethernet ports
> Several DSA bindings reference dsa.yaml ports, use "additionalProperties:
> true", and limit their port node pattern to a subset of unit addresses.
> Because of that, port nodes with any other unit address pass validation
> without a warning. The patch drops the unit address from the pattern and
> limits the port reg value with a maximum instead.
> [ ... ]
> > diff --git a/Documentation/devicetree/bindings/net/dsa/qca8k.yaml
> b/Documentation/devicetree/bindings/net/dsa/qca8k.yaml
> > index 167398ab253aa..3840b336bdb93 100644
> > --- a/Documentation/devicetree/bindings/net/dsa/qca8k.yaml
> > +++ b/Documentation/devicetree/bindings/net/dsa/qca8k.yaml
> > @@ -75,13 +75,15 @@ patternProperties:
> > type: object
> > additionalProperties: true
> > patternProperties:
> > - "^(ethernet-)?port@[0-6]$":
> > + "^(ethernet-)?port@":
> > type: object
> > description: Ethernet switch ports
> >
> > $ref: dsa-port.yaml#
> >
> > properties:
> > + reg:
> > + maximum: 6
> [Severity: High]
> Was renesas,rzn1-a5psw.yaml left out of this conversion on purpose? It
> looks like it has the same problem the commit message describes. It
> references dsa.yaml ports, its ethernet-ports node uses
> additionalProperties: true, and its port pattern still limits the unit
> address:
> Documentation/devicetree/bindings/net/dsa/renesas,rzn1-a5psw.yaml:
> allOf:
> - $ref: dsa.yaml#/$defs/ethernet-ports
> ...
> ethernet-ports:
> type: object
> additionalProperties: true
> patternProperties:
> "^(ethernet-)?port@[0-4]$":
> Under a renesas,rzn1-a5psw switch, a node such as port@5 or port@7 does
> not match this pattern. It does match the generic
> "^(ethernet-)?port@[0-9a-f]+$" pattern in dsa.yaml, so only the generic
> dsa-port.yaml checks apply and it passes validation. This hardware only
> has ports 0-4 (4 ports plus 1 CPU port).
> Would the same change used here for qca8k.yaml work for that file too,
> i.e. "^(ethernet-)?port@" plus reg: maximum: 4?
> nxp,netc-switch.yaml has a weaker form of the same gap:
> ethernet-ports:
> type: object
> patternProperties:
> "^ethernet-port@[0-9a-f]$":
> type: object
> $ref: dsa-port.yaml#
> A node named port@1 (no ethernet- prefix) or ethernet-port@10 does not
> match this pattern. Instead it matches the
> '^(ethernet-)?port@[0-9a-f]+$' pattern in ethernet-switch.yaml, which is
> reached through $ref: dsa.yaml# and only applies type: object.
> Such a node skips the NETC port schema, including dsa-port.yaml and its
> unevaluatedProperties: false, and passes without a warning.
> Should this patch cover nxp,netc-switch.yaml as well?
Could you answer this sashiko question?
prev parent reply other threads:[~2026-11-30 14:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-22 16:09 [PATCH net-next 1/2] dt-bindings: net: dsa: nxp,sja1105: Properly apply ports up to 11th port Krzysztof Kozlowski
2026-11-22 16:09 ` [PATCH net-next 2/2] dt-bindings: net: dsa: Flag unexpected ethernet ports Krzysztof Kozlowski
2026-11-23 16:11 ` netdev-bot+sashiko
2026-11-30 14:50 ` willemb [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=willemb.3ade2fe24e53d@google.com \
--to=willemb@google.com \
--cc=Landen.Chao@mediatek.com \
--cc=UNGLinuxDriver@microchip.com \
--cc=andrew@lunn.ch \
--cc=angelogioacchino.delregno@collabora.com \
--cc=ansuelsmth@gmail.com \
--cc=arinc.unal@arinc9.com \
--cc=conor+dt@kernel.org \
--cc=daniel@makrotopia.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=dqfext@gmail.com \
--cc=edumazet@kernel.org \
--cc=hauke@hauke-m.de \
--cc=jensemil.schulzostergaard@microchip.com \
--cc=john@phrozen.org \
--cc=krzk+dt@kernel.org \
--cc=krzysztof.kozlowski@oss.qualcomm.com \
--cc=kuba@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=marex@denx.de \
--cc=matthias.bgg@gmail.com \
--cc=netdev-bot+sashiko@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=olteanv@gmail.com \
--cc=pabeni@redhat.com \
--cc=robh@kernel.org \
--cc=sean.wang@mediatek.com \
--cc=woojung.huh@microchip.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox