dt-bindings: usb: qcom,dwc3: set minItems for interrupt-names
Subsystems (3)
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
@@ -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
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_checkerrors. Make the last entry optional by setting minItems to 4.Signed-off-by Bartosz Golaszewski <[email protected]>--- 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:
binding")
Best regards,
Krzysztof
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_checkerrors. Make the last entry optional by setting minItems to 4.
Quoted 9 lines
Quoted 4 lines
Signed-off-by Bartosz Golaszewski <[email protected]>--- 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 inbinding")
Thanks,
Bart
Krzysztof Kozlowski
Reviewed-byQuoted 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_checkerrors. Make the last entry optional by setting minItems to 4.Signed-off-by Bartosz Golaszewski <[email protected]>--- 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
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_checkerrors. Make the last entry optional by setting minItems to 4.
Quoted 8 lines
Quoted 4 lines
Signed-off-by Bartosz Golaszewski <[email protected]>--- 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
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_checkerrors. Make the last entry optional by setting minItems to 4.Signed-off-by Bartosz Golaszewski <[email protected]>--- Documentation/devicetree/bindings/usb/qcom,dwc3.yaml | 1 + 1 file changed, 1 insertion(+)Documentation/devicetree/bindings/usb/qcom,dwc3.yaml +1
-1@@ -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
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_checkerrors. Make the last entry optional by setting minItems to 4.Signed-off-by Bartosz Golaszewski <[email protected]>--- Documentation/devicetree/bindings/usb/qcom,dwc3.yaml | 1 + 1 file changed, 1 insertion(+)Documentation/devicetree/bindings/usb/qcom,dwc3.yaml +1
-0@@ -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
-1items: - 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