Skip to contentSkip to conversation

dt-bindings: ethernet: eswin: fix hsp-sp-csr backward compatibility

PATCH Superseded [email protected] 2 participants 3 messages May 25 – Jun 1

Subsystems (3)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt-bindings: ethernet: eswin: fix hsp-sp-csr backward compatibility

From: Zhi Li <[email protected]>

The previous change added two optional cells to
eswin,hsp-sp-csr, but omitted minItems: 4.

As a result, dt-schema implicitly required all 6 cells, breaking backward compatibility with existing 4-cell device trees.

Add minItems: 4 to preserve backward compatibility.

Fixes c36069c6f46c ("dt-bindings: ethernet: eswin: add optional TXD and RXD delay register offsets")
---
 Documentation/devicetree/bindings/net/eswin,eic7700-eth.yaml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/net/eswin,eic7700-eth.yaml +2 -1
index b66ae6300faf..65882ff79d8d 100644
@@ -84,7 +84,8 @@ properties:
       This reference is provided for background information only.
     $ref: /schemas/types.yaml#/definitions/phandle-array
     items:
-      - items:
+      - minItems: 4
+        items:
           - description: Phandle to HSP(High-Speed Peripheral) device
           - description: Offset of phy control register for internal
                          or external clock selection
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 3 lines · On Mon, May 25, 2026 at 01:24:41PM +0800, [email protected] wrote:

From: Zhi Li <[email protected]>

The previous change added two optional cells to

What is previous in this context? There is no previous commit here.

Quoted 5 lines

eswin,hsp-sp-csr, but omitted minItems: 4.

As a result, dt-schema implicitly required all 6 cells, breaking backward compatibility with existing 4-cell device trees.

Please wrap commit message according to Linux coding style / submission process (neither too early nor over the limit):
https://elixir.bootlin.com/linux/v6.4-rc1/source/Documentation/process/submitting-patches.rst#L597

Quoted 8 lines

Add minItems: 4 to preserve backward compatibility.

Fixes c36069c6f46c ("dt-bindings: ethernet: eswin: add optional TXD and RXD delay register offsets")

---

With fixed commit msg:

Best regards,
Krzysztof

author
#2 lore raw
Quoted 10 lines

-----Original Messages-----
From: "Krzysztof Kozlowski" <[email protected]>
Send time:Saturday, 30/05/2026 19:18:54
To: [email protected]
Cc: [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
Subject: Re: [PATCH net v1] dt-bindings: ethernet: eswin: fix hsp-sp-csr backward compatibility

Quoted 7 lines
Quoted 3 lines · On Mon, May 25, 2026 at 01:24:41PM +0800, [email protected] wrote:

From: Zhi Li <[email protected]>

The previous change added two optional cells to

What is previous in this context? There is no previous commit here.

Good point. I'll reword this in v2 to explicitly reference the commit being fixed.

Quoted 10 lines
Quoted 5 lines

eswin,hsp-sp-csr, but omitted minItems: 4.

As a result, dt-schema implicitly required all 6 cells, breaking backward compatibility with existing 4-cell device trees.

Please wrap commit message according to Linux coding style / submission process (neither too early nor over the limit):
https://elixir.bootlin.com/linux/v6.4-rc1/source/Documentation/process/submitting-patches.rst#L597

Thanks, I'll fix the line wrapping in v2 as well.

Quoted 10 lines
Quoted 8 lines

Add minItems: 4 to preserve backward compatibility.

Fixes c36069c6f46c ("dt-bindings: ethernet: eswin: add optional TXD and RXD delay register offsets")

---

Quoted 4 lines

With fixed commit msg:

Thanks, I'll carry your Reviewed-by tag in v2.