devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net v2] dt-bindings: net: sparx5: Narrow properly LAN969x register space windows
@ 2025-10-26 10:17 Krzysztof Kozlowski
  2025-10-27 19:17 ` Rob Herring (Arm)
  2025-10-28  1:30 ` patchwork-bot+netdevbpf
  0 siblings, 2 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2025-10-26 10:17 UTC (permalink / raw)
  To: Andrew Lunn, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Steen Hegelund, Daniel Machon, UNGLinuxDriver, Lars Povlsen,
	Robert Marko, netdev, devicetree, linux-arm-kernel, linux-kernel
  Cc: Krzysztof Kozlowski

Commit 267bca002c50 ("dt-bindings: net: sparx5: correct LAN969x register
space windows") said that LAN969x has exactly two address spaces ("reg"
property) but implemented it as 2 or more.  Narrow the constraint to
properly express that only two items are allowed, which also matches
Linux driver.

Fixes: 267bca002c50 ("dt-bindings: net: sparx5: correct LAN969x register space windows")
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

---

No in-kernel DTS using it.

Changes in v2:
1. Fix typo in commit msg.
---
 .../devicetree/bindings/net/microchip,sparx5-switch.yaml      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/net/microchip,sparx5-switch.yaml b/Documentation/devicetree/bindings/net/microchip,sparx5-switch.yaml
index 5caa3779660d..5491d0775ede 100644
--- a/Documentation/devicetree/bindings/net/microchip,sparx5-switch.yaml
+++ b/Documentation/devicetree/bindings/net/microchip,sparx5-switch.yaml
@@ -180,9 +180,9 @@ allOf:
     then:
       properties:
         reg:
-          minItems: 2
+          maxItems: 2
         reg-names:
-          minItems: 2
+          maxItems: 2
     else:
       properties:
         reg:
-- 
2.48.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH net v2] dt-bindings: net: sparx5: Narrow properly LAN969x register space windows
  2025-10-26 10:17 [PATCH net v2] dt-bindings: net: sparx5: Narrow properly LAN969x register space windows Krzysztof Kozlowski
@ 2025-10-27 19:17 ` Rob Herring (Arm)
  2025-10-28  1:30 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: Rob Herring (Arm) @ 2025-10-27 19:17 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Andrew Lunn, UNGLinuxDriver, Daniel Machon, Robert Marko,
	Paolo Abeni, linux-arm-kernel, Lars Povlsen, netdev, devicetree,
	David S. Miller, Steen Hegelund, Eric Dumazet, linux-kernel,
	Jakub Kicinski, Conor Dooley, Krzysztof Kozlowski


On Sun, 26 Oct 2025 11:17:42 +0100, Krzysztof Kozlowski wrote:
> Commit 267bca002c50 ("dt-bindings: net: sparx5: correct LAN969x register
> space windows") said that LAN969x has exactly two address spaces ("reg"
> property) but implemented it as 2 or more.  Narrow the constraint to
> properly express that only two items are allowed, which also matches
> Linux driver.
> 
> Fixes: 267bca002c50 ("dt-bindings: net: sparx5: correct LAN969x register space windows")
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> 
> ---
> 
> No in-kernel DTS using it.
> 
> Changes in v2:
> 1. Fix typo in commit msg.
> ---
>  .../devicetree/bindings/net/microchip,sparx5-switch.yaml      | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 

Acked-by: Rob Herring (Arm) <robh@kernel.org>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH net v2] dt-bindings: net: sparx5: Narrow properly LAN969x register space windows
  2025-10-26 10:17 [PATCH net v2] dt-bindings: net: sparx5: Narrow properly LAN969x register space windows Krzysztof Kozlowski
  2025-10-27 19:17 ` Rob Herring (Arm)
@ 2025-10-28  1:30 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-10-28  1:30 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: andrew+netdev, davem, edumazet, kuba, pabeni, robh, krzk+dt,
	conor+dt, Steen.Hegelund, daniel.machon, UNGLinuxDriver,
	lars.povlsen, robert.marko, netdev, devicetree, linux-arm-kernel,
	linux-kernel

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Sun, 26 Oct 2025 11:17:42 +0100 you wrote:
> Commit 267bca002c50 ("dt-bindings: net: sparx5: correct LAN969x register
> space windows") said that LAN969x has exactly two address spaces ("reg"
> property) but implemented it as 2 or more.  Narrow the constraint to
> properly express that only two items are allowed, which also matches
> Linux driver.
> 
> Fixes: 267bca002c50 ("dt-bindings: net: sparx5: correct LAN969x register space windows")
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> 
> [...]

Here is the summary with links:
  - [net,v2] dt-bindings: net: sparx5: Narrow properly LAN969x register space windows
    https://git.kernel.org/netdev/net/c/210b35d6a7ea

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-10-28  1:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-26 10:17 [PATCH net v2] dt-bindings: net: sparx5: Narrow properly LAN969x register space windows Krzysztof Kozlowski
2025-10-27 19:17 ` Rob Herring (Arm)
2025-10-28  1:30 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).