linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: usb: qcom,dwc3: set minItems for interrupt-names
@ 2024-05-27 14:45 Bartosz Golaszewski
  2024-05-27 15:13 ` Krzysztof Kozlowski
  2024-06-04  6:52 ` Bartosz Golaszewski
  0 siblings, 2 replies; 7+ messages in thread
From: Bartosz Golaszewski @ 2024-05-27 14:45 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Wesley Cheng
  Cc: linux-arm-msm, linux-usb, devicetree, linux-kernel,
	Bartosz Golaszewski

From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

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 <bartosz.golaszewski@linaro.org>
---
 Documentation/devicetree/bindings/usb/qcom,dwc3.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml b/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml
index cf633d488c3f..4251dc25ee9a 100644
--- a/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml
+++ b/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml
@@ -468,6 +468,7 @@ allOf:
           minItems: 4
           maxItems: 5
         interrupt-names:
+          minItems: 4
           items:
             - const: pwr_event
             - const: hs_phy_irq
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH] dt-bindings: usb: qcom,dwc3: set minItems for interrupt-names
  2024-05-27 14:45 [PATCH] dt-bindings: usb: qcom,dwc3: set minItems for interrupt-names Bartosz Golaszewski
@ 2024-05-27 15:13 ` Krzysztof Kozlowski
  2024-05-27 15:33   ` Bartosz Golaszewski
  2024-06-04 10:51   ` Johan Hovold
  2024-06-04  6:52 ` Bartosz Golaszewski
  1 sibling, 2 replies; 7+ messages in thread
From: Krzysztof Kozlowski @ 2024-05-27 15:13 UTC (permalink / raw)
  To: Bartosz Golaszewski, Greg Kroah-Hartman, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Wesley Cheng
  Cc: linux-arm-msm, linux-usb, devicetree, linux-kernel,
	Bartosz Golaszewski, Krishna Kurapati PSSNV

On 27/05/2024 16:45, Bartosz Golaszewski wrote:
> From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
> 
> 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 <bartosz.golaszewski@linaro.org>
> ---
>  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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] dt-bindings: usb: qcom,dwc3: set minItems for interrupt-names
  2024-05-27 15:13 ` Krzysztof Kozlowski
@ 2024-05-27 15:33   ` Bartosz Golaszewski
  2024-05-27 16:29     ` Krzysztof Kozlowski
  2024-06-04 10:51   ` Johan Hovold
  1 sibling, 1 reply; 7+ messages in thread
From: Bartosz Golaszewski @ 2024-05-27 15:33 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Greg Kroah-Hartman, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Wesley Cheng, linux-arm-msm, linux-usb, devicetree,
	linux-kernel, Bartosz Golaszewski, Krishna Kurapati PSSNV

On Mon, May 27, 2024 at 5:13 PM Krzysztof Kozlowski <krzk@kernel.org> wrote:
>
> On 27/05/2024 16:45, Bartosz Golaszewski wrote:
> > From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
> >
> > 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 <bartosz.golaszewski@linaro.org>
> > ---
> >  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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] dt-bindings: usb: qcom,dwc3: set minItems for interrupt-names
  2024-05-27 15:33   ` Bartosz Golaszewski
@ 2024-05-27 16:29     ` Krzysztof Kozlowski
  0 siblings, 0 replies; 7+ messages in thread
From: Krzysztof Kozlowski @ 2024-05-27 16:29 UTC (permalink / raw)
  To: Bartosz Golaszewski
  Cc: Greg Kroah-Hartman, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Wesley Cheng, linux-arm-msm, linux-usb, devicetree,
	linux-kernel, Bartosz Golaszewski, Krishna Kurapati PSSNV

On 27/05/2024 17:33, Bartosz Golaszewski wrote:
> On Mon, May 27, 2024 at 5:13 PM Krzysztof Kozlowski <krzk@kernel.org> wrote:
>>
>> On 27/05/2024 16:45, Bartosz Golaszewski wrote:
>>> From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
>>>
>>> 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 <bartosz.golaszewski@linaro.org>
>>> ---
>>>  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 <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] dt-bindings: usb: qcom,dwc3: set minItems for interrupt-names
  2024-05-27 14:45 [PATCH] dt-bindings: usb: qcom,dwc3: set minItems for interrupt-names Bartosz Golaszewski
  2024-05-27 15:13 ` Krzysztof Kozlowski
@ 2024-06-04  6:52 ` Bartosz Golaszewski
  2024-06-04 10:52   ` Johan Hovold
  1 sibling, 1 reply; 7+ messages in thread
From: Bartosz Golaszewski @ 2024-06-04  6:52 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Wesley Cheng
  Cc: linux-arm-msm, linux-usb, devicetree, linux-kernel,
	Bartosz Golaszewski

On Mon, May 27, 2024 at 4:45 PM Bartosz Golaszewski <brgl@bgdev.pl> wrote:
>
> From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
>
> 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 <bartosz.golaszewski@linaro.org>
> ---
>  Documentation/devicetree/bindings/usb/qcom,dwc3.yaml | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml b/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml
> index cf633d488c3f..4251dc25ee9a 100644
> --- a/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml
> +++ b/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml
> @@ -468,6 +468,7 @@ allOf:
>            minItems: 4
>            maxItems: 5
>          interrupt-names:
> +          minItems: 4
>            items:
>              - const: pwr_event
>              - const: hs_phy_irq
> --
> 2.43.0
>

Gentle ping.

Bart

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] dt-bindings: usb: qcom,dwc3: set minItems for interrupt-names
  2024-05-27 15:13 ` Krzysztof Kozlowski
  2024-05-27 15:33   ` Bartosz Golaszewski
@ 2024-06-04 10:51   ` Johan Hovold
  1 sibling, 0 replies; 7+ messages in thread
From: Johan Hovold @ 2024-06-04 10:51 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Bartosz Golaszewski
  Cc: Greg Kroah-Hartman, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Wesley Cheng, linux-arm-msm, linux-usb, devicetree,
	linux-kernel, Bartosz Golaszewski, Krishna Kurapati PSSNV

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 <bartosz.golaszewski@linaro.org>
> > 
> > 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 <bartosz.golaszewski@linaro.org>
> > ---
> >  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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] dt-bindings: usb: qcom,dwc3: set minItems for interrupt-names
  2024-06-04  6:52 ` Bartosz Golaszewski
@ 2024-06-04 10:52   ` Johan Hovold
  0 siblings, 0 replies; 7+ messages in thread
From: Johan Hovold @ 2024-06-04 10:52 UTC (permalink / raw)
  To: Bartosz Golaszewski
  Cc: Greg Kroah-Hartman, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Wesley Cheng, linux-arm-msm, linux-usb, devicetree,
	linux-kernel, Bartosz Golaszewski

On Tue, Jun 04, 2024 at 08:52:52AM +0200, Bartosz Golaszewski wrote:
> On Mon, May 27, 2024 at 4:45 PM Bartosz Golaszewski <brgl@bgdev.pl> wrote:
> >
> > From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
> >
> > 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 <bartosz.golaszewski@linaro.org>
> > ---
> >  Documentation/devicetree/bindings/usb/qcom,dwc3.yaml | 1 +
> >  1 file changed, 1 insertion(+)
> >
> > diff --git a/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml b/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml
> > index cf633d488c3f..4251dc25ee9a 100644
> > --- a/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml
> > +++ b/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml
> > @@ -468,6 +468,7 @@ allOf:
> >            minItems: 4
> >            maxItems: 5
> >          interrupt-names:
> > +          minItems: 4
> >            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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-06-04 10:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-27 14:45 [PATCH] dt-bindings: usb: qcom,dwc3: set minItems for interrupt-names Bartosz Golaszewski
2024-05-27 15:13 ` Krzysztof Kozlowski
2024-05-27 15:33   ` Bartosz Golaszewski
2024-05-27 16:29     ` Krzysztof Kozlowski
2024-06-04 10:51   ` Johan Hovold
2024-06-04  6:52 ` Bartosz Golaszewski
2024-06-04 10:52   ` Johan Hovold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).