linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] spi: dt-bindings: qcom,spi-geni-qcom: allow three interconnects
@ 2022-05-04 12:51 Krzysztof Kozlowski
  2022-05-04 15:01 ` Mark Brown
  2022-05-04 15:37 ` Rob Herring
  0 siblings, 2 replies; 8+ messages in thread
From: Krzysztof Kozlowski @ 2022-05-04 12:51 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Mark Brown, Rob Herring,
	Krzysztof Kozlowski, linux-arm-msm, linux-spi, devicetree,
	linux-kernel
  Cc: Krzysztof Kozlowski

Recent Qualcomm Geni SPI nodes, e.g. on SM8450, come with three
interconnects.  This fixes dtbs_check warnings like:

  sm8450-qrd.dtb: geniqup@8c0000: spi@880000:interconnect-names: ['qup-core', 'qup-config'] is too short

Fixes: 5bdcae1fe1c5 ("spi: dt-bindings: qcom,spi-geni-qcom: convert to dtschema")
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

---

Fix for a commit in MSM/Bjorn's tree.
---
 .../devicetree/bindings/spi/qcom,spi-geni-qcom.yaml          | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/spi/qcom,spi-geni-qcom.yaml b/Documentation/devicetree/bindings/spi/qcom,spi-geni-qcom.yaml
index e2c7b934c50d..47e1b3ee8b1b 100644
--- a/Documentation/devicetree/bindings/spi/qcom,spi-geni-qcom.yaml
+++ b/Documentation/devicetree/bindings/spi/qcom,spi-geni-qcom.yaml
@@ -45,12 +45,15 @@ properties:
       - const: rx
 
   interconnects:
-    maxItems: 2
+    minItems: 2
+    maxItems: 3
 
   interconnect-names:
+    minItems: 2
     items:
       - const: qup-core
       - const: qup-config
+      - const: qup-memory
 
   interrupts:
     maxItems: 1
-- 
2.32.0


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

* Re: [PATCH] spi: dt-bindings: qcom,spi-geni-qcom: allow three interconnects
  2022-05-04 12:51 [PATCH] spi: dt-bindings: qcom,spi-geni-qcom: allow three interconnects Krzysztof Kozlowski
@ 2022-05-04 15:01 ` Mark Brown
  2022-05-04 15:14   ` Krzysztof Kozlowski
  2022-05-04 15:37 ` Rob Herring
  1 sibling, 1 reply; 8+ messages in thread
From: Mark Brown @ 2022-05-04 15:01 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Andy Gross, Bjorn Andersson, Rob Herring, Krzysztof Kozlowski,
	linux-arm-msm, linux-spi, devicetree, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 257 bytes --]

On Wed, May 04, 2022 at 02:51:19PM +0200, Krzysztof Kozlowski wrote:
> Recent Qualcomm Geni SPI nodes, e.g. on SM8450, come with three
> interconnects.  This fixes dtbs_check warnings like:

This doesn't apply against current code, please check and resend.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* Re: [PATCH] spi: dt-bindings: qcom,spi-geni-qcom: allow three interconnects
  2022-05-04 15:01 ` Mark Brown
@ 2022-05-04 15:14   ` Krzysztof Kozlowski
  2022-05-04 15:20     ` Mark Brown
  0 siblings, 1 reply; 8+ messages in thread
From: Krzysztof Kozlowski @ 2022-05-04 15:14 UTC (permalink / raw)
  To: Mark Brown, Bjorn Andersson
  Cc: Andy Gross, Rob Herring, Krzysztof Kozlowski, linux-arm-msm,
	linux-spi, devicetree, linux-kernel

On 04/05/2022 17:01, Mark Brown wrote:
> On Wed, May 04, 2022 at 02:51:19PM +0200, Krzysztof Kozlowski wrote:
>> Recent Qualcomm Geni SPI nodes, e.g. on SM8450, come with three
>> interconnects.  This fixes dtbs_check warnings like:
> 
> This doesn't apply against current code, please check and resend.

Thanks Mark, but as explained in commit below "---" - this is a fix for
commit in Qualcomm/Bjorn tree. Could you ack it instead?

Best regards,
Krzysztof

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

* Re: [PATCH] spi: dt-bindings: qcom,spi-geni-qcom: allow three interconnects
  2022-05-04 15:14   ` Krzysztof Kozlowski
@ 2022-05-04 15:20     ` Mark Brown
  2022-05-05  9:00       ` Krzysztof Kozlowski
  0 siblings, 1 reply; 8+ messages in thread
From: Mark Brown @ 2022-05-04 15:20 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Bjorn Andersson, Andy Gross, Rob Herring, Krzysztof Kozlowski,
	linux-arm-msm, linux-spi, devicetree, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 689 bytes --]

On Wed, May 04, 2022 at 05:14:19PM +0200, Krzysztof Kozlowski wrote:
> On 04/05/2022 17:01, Mark Brown wrote:
> > On Wed, May 04, 2022 at 02:51:19PM +0200, Krzysztof Kozlowski wrote:

> >> Recent Qualcomm Geni SPI nodes, e.g. on SM8450, come with three
> >> interconnects.  This fixes dtbs_check warnings like:

> > This doesn't apply against current code, please check and resend.

> Thanks Mark, but as explained in commit below "---" - this is a fix for
> commit in Qualcomm/Bjorn tree. Could you ack it instead?

I was expecting this to be a fix for some change in the DTs in the
Qualcomm tree.  Why is there a change to the SPI bindings in there?  I
don't seem to have reviewed it...

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* Re: [PATCH] spi: dt-bindings: qcom,spi-geni-qcom: allow three interconnects
  2022-05-04 12:51 [PATCH] spi: dt-bindings: qcom,spi-geni-qcom: allow three interconnects Krzysztof Kozlowski
  2022-05-04 15:01 ` Mark Brown
@ 2022-05-04 15:37 ` Rob Herring
  2022-05-05  6:50   ` Krzysztof Kozlowski
  1 sibling, 1 reply; 8+ messages in thread
From: Rob Herring @ 2022-05-04 15:37 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Andy Gross, Bjorn Andersson, Mark Brown, Krzysztof Kozlowski,
	linux-arm-msm, linux-spi, devicetree, linux-kernel

On Wed, May 04, 2022 at 02:51:19PM +0200, Krzysztof Kozlowski wrote:
> Recent Qualcomm Geni SPI nodes, e.g. on SM8450, come with three
> interconnects.  This fixes dtbs_check warnings like:
> 
>   sm8450-qrd.dtb: geniqup@8c0000: spi@880000:interconnect-names: ['qup-core', 'qup-config'] is too short

I'm confused. A length of 2 was already allowed before this change.

> 
> Fixes: 5bdcae1fe1c5 ("spi: dt-bindings: qcom,spi-geni-qcom: convert to dtschema")
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> 
> ---
> 
> Fix for a commit in MSM/Bjorn's tree.
> ---
>  .../devicetree/bindings/spi/qcom,spi-geni-qcom.yaml          | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/Documentation/devicetree/bindings/spi/qcom,spi-geni-qcom.yaml b/Documentation/devicetree/bindings/spi/qcom,spi-geni-qcom.yaml
> index e2c7b934c50d..47e1b3ee8b1b 100644
> --- a/Documentation/devicetree/bindings/spi/qcom,spi-geni-qcom.yaml
> +++ b/Documentation/devicetree/bindings/spi/qcom,spi-geni-qcom.yaml
> @@ -45,12 +45,15 @@ properties:
>        - const: rx
>  
>    interconnects:
> -    maxItems: 2
> +    minItems: 2
> +    maxItems: 3
>  
>    interconnect-names:
> +    minItems: 2
>      items:
>        - const: qup-core
>        - const: qup-config
> +      - const: qup-memory
>  
>    interrupts:
>      maxItems: 1
> -- 
> 2.32.0
> 
> 

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

* Re: [PATCH] spi: dt-bindings: qcom,spi-geni-qcom: allow three interconnects
  2022-05-04 15:37 ` Rob Herring
@ 2022-05-05  6:50   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 8+ messages in thread
From: Krzysztof Kozlowski @ 2022-05-05  6:50 UTC (permalink / raw)
  To: Rob Herring
  Cc: Andy Gross, Bjorn Andersson, Mark Brown, Krzysztof Kozlowski,
	linux-arm-msm, linux-spi, devicetree, linux-kernel

On 04/05/2022 17:37, Rob Herring wrote:
> On Wed, May 04, 2022 at 02:51:19PM +0200, Krzysztof Kozlowski wrote:
>> Recent Qualcomm Geni SPI nodes, e.g. on SM8450, come with three
>> interconnects.  This fixes dtbs_check warnings like:
>>
>>   sm8450-qrd.dtb: geniqup@8c0000: spi@880000:interconnect-names: ['qup-core', 'qup-config'] is too short
> 
> I'm confused. A length of 2 was already allowed before this change.

Me too... I think I copied that message not from original code, but from
intermediary fix setting it to three elements. This was also wrong
because some of nodes have two some three interconnects.

The actual error is:

arch/arm64/boot/dts/qcom/sm8450-qrd.dtb: spi@a98000: interconnects:
[[46, 1, 0, 46, 4, 0], [47, 2, 0, 48, 12, 0], [49, 1, 0, 50, 1, 0]] is
too long

	From schema: Documentation/devicetree/bindings/spi/qcom,spi-geni-qcom.yaml

arch/arm64/boot/dts/qcom/sm8450-qrd.dtb: spi@a98000: interconnect-names:
['qup-core', 'qup-config', 'qup-memory'] is too long

	From schema: Documentation/devicetree/bindings/spi/qcom,spi-geni-qcom.yaml

I will send a v2.

Best regards,
Krzysztof

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

* Re: [PATCH] spi: dt-bindings: qcom,spi-geni-qcom: allow three interconnects
  2022-05-04 15:20     ` Mark Brown
@ 2022-05-05  9:00       ` Krzysztof Kozlowski
  2022-05-05 15:26         ` Mark Brown
  0 siblings, 1 reply; 8+ messages in thread
From: Krzysztof Kozlowski @ 2022-05-05  9:00 UTC (permalink / raw)
  To: Mark Brown
  Cc: Bjorn Andersson, Andy Gross, Rob Herring, Krzysztof Kozlowski,
	linux-arm-msm, linux-spi, devicetree, linux-kernel

On 04/05/2022 17:20, Mark Brown wrote:
>> Thanks Mark, but as explained in commit below "---" - this is a fix for
>> commit in Qualcomm/Bjorn tree. Could you ack it instead?
> 
> I was expecting this to be a fix for some change in the DTs in the
> Qualcomm tree.  Why is there a change to the SPI bindings in there?  I
> don't seem to have reviewed it...

I don't know, Mark. The confusion was not intended. The second patch in
the set depended on SPI patch, so probably after three weeks Bjorn just
took entire set.

https://lore.kernel.org/all/20220404064017.68634-1-krzysztof.kozlowski@linaro.org/

Best regards,
Krzysztof

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

* Re: [PATCH] spi: dt-bindings: qcom,spi-geni-qcom: allow three interconnects
  2022-05-05  9:00       ` Krzysztof Kozlowski
@ 2022-05-05 15:26         ` Mark Brown
  0 siblings, 0 replies; 8+ messages in thread
From: Mark Brown @ 2022-05-05 15:26 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Bjorn Andersson, Andy Gross, Rob Herring, Krzysztof Kozlowski,
	linux-arm-msm, linux-spi, devicetree, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 598 bytes --]

On Thu, May 05, 2022 at 11:00:26AM +0200, Krzysztof Kozlowski wrote:

> I don't know, Mark. The confusion was not intended. The second patch in
> the set depended on SPI patch, so probably after three weeks Bjorn just
> took entire set.

> https://lore.kernel.org/all/20220404064017.68634-1-krzysztof.kozlowski@linaro.org/

Ah, so this was part of the pile where I was waiting for Bjorn to say if
he was OK with adding him as a maintainer.  Bjorn, please don't just
apply patches without some sort of handshake when people are clearly
around and replying to mail - it causes confusion like this :(

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

end of thread, other threads:[~2022-05-05 15:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-04 12:51 [PATCH] spi: dt-bindings: qcom,spi-geni-qcom: allow three interconnects Krzysztof Kozlowski
2022-05-04 15:01 ` Mark Brown
2022-05-04 15:14   ` Krzysztof Kozlowski
2022-05-04 15:20     ` Mark Brown
2022-05-05  9:00       ` Krzysztof Kozlowski
2022-05-05 15:26         ` Mark Brown
2022-05-04 15:37 ` Rob Herring
2022-05-05  6:50   ` Krzysztof Kozlowski

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).