2024-05-27 15:22:26

by Krzysztof Kozlowski

[permalink] [raw]
Subject: Re: [PATCH] dt-bindings: usb: qcom,dwc3: set minItems for interrupt-names

On 27/05/2024 16:45, Bartosz Golaszewski wrote:
> 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.
>
> 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:
Fixes: 53c6d854be4e ("dt-bindings: usb: dwc3: Clean up hs_phy_irq in
binding")


Best regards,
Krzysztof



2024-05-27 15:34:12

by Bartosz Golaszewski

[permalink] [raw]
Subject: Re: [PATCH] dt-bindings: usb: qcom,dwc3: set minItems for interrupt-names

On Mon, May 27, 2024 at 5:13 PM Krzysztof Kozlowski <[email protected]> wrote:
>
> On 27/05/2024 16:45, Bartosz Golaszewski wrote:
> > 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.
> >
> > 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.

> 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

2024-05-27 16:29:42

by Krzysztof Kozlowski

[permalink] [raw]
Subject: Re: [PATCH] dt-bindings: usb: qcom,dwc3: set minItems for interrupt-names

On 27/05/2024 17:33, Bartosz Golaszewski wrote:
> On Mon, May 27, 2024 at 5:13 PM Krzysztof Kozlowski <[email protected]> wrote:
>>
>> On 27/05/2024 16:45, Bartosz Golaszewski wrote:
>>> 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.
>>>
>>> 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.
>


Reviewed-by: Krzysztof Kozlowski <[email protected]>

Best regards,
Krzysztof


2024-06-04 10:52:06

by Johan Hovold

[permalink] [raw]
Subject: Re: [PATCH] dt-bindings: usb: qcom,dwc3: set minItems for interrupt-names

On Mon, May 27, 2024 at 05:13:39PM +0200, Krzysztof Kozlowski wrote:
> On 27/05/2024 16:45, Bartosz Golaszewski wrote:
> > 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.
> >
> > 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.

> 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