mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
To: netdev-bot+sashiko@kernel.org
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: Tue, 1 Dec 2026 05:23:24 +0100	[thread overview]
Message-ID: <4dca2612-b841-49d8-929e-1c76aa46ad15@oss.qualcomm.com> (raw)
In-Reply-To: <179545031306.3135.11482802242328622537@kernel.org>

On 23/11/2026 17:11, netdev-bot+sashiko@kernel.org wrote:
>>  
>>          $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:

This is fixed by Lad's patch:
https://lore.kernel.org/all/20261120002549.1908299-7-prabhakar.mahadev-lad.rj@bp.renesas.com/

> 
> 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?

As Rob explained, that requires a bit more effort than this simple cleanup.


Best regards,
Krzysztof

  parent reply	other threads:[~2026-12-01  4:23 UTC|newest]

Thread overview: 8+ 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
2026-12-01  3:32     ` Rob Herring
2026-12-01  4:23     ` Krzysztof Kozlowski [this message]
2026-12-01  3:02 ` [PATCH net-next 1/2] dt-bindings: net: dsa: nxp,sja1105: Properly apply ports up to 11th port Rob Herring (Arm)
2026-12-01  9:10 ` patchwork-bot+netdevbpf

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=4dca2612-b841-49d8-929e-1c76aa46ad15@oss.qualcomm.com \
    --to=krzysztof.kozlowski@oss.qualcomm.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=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

all inboxes | Powered by JetHome®