Skip to contentSkip to conversation

dt-bindings: phy: qmp-ufs: fix clock and clock-names for sa8775p

PATCH Superseded Bartosz Golaszewski 2 participants 2 messages Apr 17, 2023 – Apr 18, 2023

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt-bindings: phy: qmp-ufs: fix clock and clock-names for sa8775p

From: Bartosz Golaszewski <[email protected]>

We must set *minItems* to 3, not maxItems as this platform requires exactly three clocks and maxItems is already set to 3 globally.

Fixes e5796a9cdf73 ("dt-bindings: phy: qmp-ufs: describe the UFS PHY for sa8775p")
---
 .../devicetree/bindings/phy/qcom,sc8280xp-qmp-ufs-phy.yaml    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-ufs-phy.yaml +2 -2
index 94c0fab065a8..a1897a7606df 100644
@@ -78,9 +78,9 @@ allOf:
     then:
       properties:
         clocks:
-          maxItems: 3
+          minItems: 3
         clock-names:
-          maxItems: 3
+          minItems: 3
     else:
       properties:
         clocks:
Signature · 7 lines
2.37.2


-- 
linux-phy mailing list
[email protected]
https://lists.infradead.org/mailman/listinfo/linux-phy
#1 lore raw
Quoted 6 lines · Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

We must set *minItems* to 3, not maxItems as this platform requires exactly three clocks and maxItems is already set to 3 globally.

Fixes e5796a9cdf73 ("dt-bindings: phy: qmp-ufs: describe the UFS PHY for sa8775p")

Your change makes the code easier to read (more obvious), so I am okay with the change, but I am not okay with commit msg and Fixes tag. Issue is described inaccurately. There is nothing to fix here, because original code was correct.

maxItems:3 in implies minItems:3, thus everything worked as should.

Feel free to re-phrase the commit msg and remove the Fixes tag.

Quoted 2 lines

---

Best regards,
Krzysztof

Signature · 3 lines
linux-phy mailing list
[email protected]
https://lists.infradead.org/mailman/listinfo/linux-phy