Skip to contentSkip to conversation

dt-bindings: usb: qcom,dwc3: set minItems for interrupt-names

PATCH In review Bartosz Golaszewski 3 participants 7 messages May 27, 2024 – Jun 4, 2024

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt-bindings: usb: qcom,dwc3: set minItems for interrupt-names

From: Bartosz Golaszewski <[email protected]>

There's a set of compatibles for which we set a strict list of 5 interrupt names even though minItems for the interrupts property is 4. One of the USB controllers on sa8775p only consumes 4 interrupts which leads to dtbs_check errors. Make the last entry optional by setting minItems to 4.

---
 Documentation/devicetree/bindings/usb/qcom,dwc3.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/usb/qcom,dwc3.yaml +1 -0
index cf633d488c3f..4251dc25ee9a 100644
@@ -468,6 +468,7 @@ allOf:
           minItems: 4
           maxItems: 5
         interrupt-names:
+          minItems: 4
           items:
             - const: pwr_event
             - const: hs_phy_irq
Signature · 1 line
2.43.0
#1 lore raw
Quoted 11 lines · Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

There's a set of compatibles for which we set a strict list of 5 interrupt names even though minItems for the interrupts property is 4. One of the USB controllers on sa8775p only consumes 4 interrupts which leads to dtbs_check errors. Make the last entry optional by setting minItems to 4.

---
 Documentation/devicetree/bindings/usb/qcom,dwc3.yaml | 1 +
 1 file changed, 1 insertion(+)

Can you also fix other cases? I found there at least two other. I missed that during review... or maybe we discussed it? I remember that commit was a pain :/

The commits from quicinc fix one issue and bring immediately one more.

But be sure that this is what we actually want. Maybe intention was to have fixed number of interrupts (so no minItems in interrupts)?

Also, in any case:

Fixes 53c6d854be4e ("dt-bindings: usb: dwc3: Clean up hs_phy_irq in

binding")

Best regards,
Krzysztof

#2 lore raw
Quoted 9 lines · Krzysztof Kozlowski
Quoted 7 lines · Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

There's a set of compatibles for which we set a strict list of 5 interrupt names even though minItems for the interrupts property is 4. One of the USB controllers on sa8775p only consumes 4 interrupts which leads to dtbs_check errors. Make the last entry optional by setting minItems to 4.

Quoted 9 lines
Quoted 4 lines
---
 Documentation/devicetree/bindings/usb/qcom,dwc3.yaml | 1 +
 1 file changed, 1 insertion(+)

Can you also fix other cases? I found there at least two other. I missed that during review... or maybe we discussed it? I remember that commit was a pain :/

I can put that on my TODO list but I really have too much on my plate ATM. I propose this be picked up separately.

Quoted 9 lines

The commits from quicinc fix one issue and bring immediately one more.

But be sure that this is what we actually want. Maybe intention was to have fixed number of interrupts (so no minItems in interrupts)?

Also, in any case:

Fixes 53c6d854be4e ("dt-bindings: usb: dwc3: Clean up hs_phy_irq in

binding")

Thanks,
Bart

#3 lore raw
Quoted 15 lines · Bartosz Golaszewski
Quoted 14 lines · Krzysztof Kozlowski
Quoted 11 lines · Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

There's a set of compatibles for which we set a strict list of 5 interrupt names even though minItems for the interrupts property is 4. One of the USB controllers on sa8775p only consumes 4 interrupts which leads to dtbs_check errors. Make the last entry optional by setting minItems to 4.

---
 Documentation/devicetree/bindings/usb/qcom,dwc3.yaml | 1 +
 1 file changed, 1 insertion(+)
Quoted 8 lines
Quoted 4 lines

Can you also fix other cases? I found there at least two other. I missed that during review... or maybe we discussed it? I remember that commit was a pain :/

I can put that on my TODO list but I really have too much on my plate ATM. I propose this be picked up separately.

Best regards,
Krzysztof

#4 lore raw
In reply to Krzysztof Kozlowski
Quoted 8 lines · Krzysztof Kozlowski
Quoted 7 lines · Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

There's a set of compatibles for which we set a strict list of 5 interrupt names even though minItems for the interrupts property is 4. One of the USB controllers on sa8775p only consumes 4 interrupts which leads to dtbs_check errors. Make the last entry optional by setting minItems to 4.

Quoted 8 lines
Quoted 4 lines
---
 Documentation/devicetree/bindings/usb/qcom,dwc3.yaml | 1 +
 1 file changed, 1 insertion(+)

Can you also fix other cases? I found there at least two other. I missed that during review... or maybe we discussed it? I remember that commit was a pain :/

Yes, please make sure to fix those two remaining instances at the same time.

Quoted 2 lines

But be sure that this is what we actually want. Maybe intention was to have fixed number of interrupts (so no minItems in interrupts)?

I'm pretty sure the intention was to keep the SuperSpeed interrupts optional.

Johan

#5 lore raw
In reply to Bartosz Golaszewski
Quoted 26 lines · Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

There's a set of compatibles for which we set a strict list of 5 interrupt names even though minItems for the interrupts property is 4. One of the USB controllers on sa8775p only consumes 4 interrupts which leads to dtbs_check errors. Make the last entry optional by setting minItems to 4.

---
 Documentation/devicetree/bindings/usb/qcom,dwc3.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/usb/qcom,dwc3.yaml +1 -1
index cf633d488c3f..4251dc25ee9a 100644
@@ -468,6 +468,7 @@ allOf:
           minItems: 4
           maxItems: 5
         interrupt-names:
+          minItems: 4
           items:
             - const: pwr_event
             - const: hs_phy_irq
--
Quoted 2 lines

2.43.0

Gentle ping.

Bart

#6 lore raw
Quoted 23 lines · Bartosz Golaszewski
Quoted 22 lines · Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

There's a set of compatibles for which we set a strict list of 5 interrupt names even though minItems for the interrupts property is 4. One of the USB controllers on sa8775p only consumes 4 interrupts which leads to dtbs_check errors. Make the last entry optional by setting minItems to 4.

---
 Documentation/devicetree/bindings/usb/qcom,dwc3.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/usb/qcom,dwc3.yaml +1 -0
index cf633d488c3f..4251dc25ee9a 100644
@@ -468,6 +468,7 @@ allOf:
           minItems: 4
           maxItems: 5
         interrupt-names:
+          minItems: 4
Quoted 8 lines
Quoted 6 lines
Documentation/devicetree/bindings/usb/qcom,dwc3.yaml +0 -1
           items:
             - const: pwr_event
             - const: hs_phy_irq
--

2.43.0

Gentle ping.

As was pointed out elsewhere in this thread, there are two more issues like introduced by the same patch which should be fixed at the same time.

Johan