All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] spi: dt-bindings: Fix unevaluatedProperties warnings in examples
@ 2022-05-26  1:41 Rob Herring
  2022-05-26  6:49 ` Krzysztof Kozlowski
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Rob Herring @ 2022-05-26  1:41 UTC (permalink / raw)
  To: Mark Brown, Krzysztof Kozlowski, Andy Gross, Bjorn Andersson,
	Conor Dooley
  Cc: Krzysztof Kozlowski, linux-spi, devicetree, linux-kernel, linux-arm-msm

The 'unevaluatedProperties' schema checks is not fully working and doesn't
catch some cases where there's a $ref to another schema. A fix is pending,
but results in new warnings in examples.

'spi-max-frequency' is supposed to be a per SPI peripheral device property,
not a SPI controller property, so drop it.

Signed-off-by: Rob Herring <robh@kernel.org>
---
 Documentation/devicetree/bindings/spi/microchip,mpfs-spi.yaml | 1 -
 Documentation/devicetree/bindings/spi/qcom,spi-geni-qcom.yaml | 1 -
 2 files changed, 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/spi/microchip,mpfs-spi.yaml b/Documentation/devicetree/bindings/spi/microchip,mpfs-spi.yaml
index ece261b8e963..7326c0a28d16 100644
--- a/Documentation/devicetree/bindings/spi/microchip,mpfs-spi.yaml
+++ b/Documentation/devicetree/bindings/spi/microchip,mpfs-spi.yaml
@@ -47,6 +47,5 @@ examples:
         clocks = <&clkcfg CLK_SPI0>;
         interrupt-parent = <&plic>;
         interrupts = <54>;
-        spi-max-frequency = <25000000>;
     };
 ...
diff --git a/Documentation/devicetree/bindings/spi/qcom,spi-geni-qcom.yaml b/Documentation/devicetree/bindings/spi/qcom,spi-geni-qcom.yaml
index e2c7b934c50d..78ceb9d67754 100644
--- a/Documentation/devicetree/bindings/spi/qcom,spi-geni-qcom.yaml
+++ b/Documentation/devicetree/bindings/spi/qcom,spi-geni-qcom.yaml
@@ -110,7 +110,6 @@ examples:
         pinctrl-names = "default";
         pinctrl-0 = <&qup_spi1_default>;
         interrupts = <GIC_SPI 602 IRQ_TYPE_LEVEL_HIGH>;
-        spi-max-frequency = <50000000>;
         #address-cells = <1>;
         #size-cells = <0>;
     };
-- 
2.34.1


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

* Re: [PATCH] spi: dt-bindings: Fix unevaluatedProperties warnings in examples
  2022-05-26  1:41 [PATCH] spi: dt-bindings: Fix unevaluatedProperties warnings in examples Rob Herring
@ 2022-05-26  6:49 ` Krzysztof Kozlowski
  2022-05-26  6:52 ` Conor.Dooley
  2022-06-06 16:13 ` Mark Brown
  2 siblings, 0 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2022-05-26  6:49 UTC (permalink / raw)
  To: Rob Herring, Mark Brown, Krzysztof Kozlowski, Andy Gross,
	Bjorn Andersson, Conor Dooley
  Cc: linux-spi, devicetree, linux-kernel, linux-arm-msm

On 26/05/2022 03:41, Rob Herring wrote:
> The 'unevaluatedProperties' schema checks is not fully working and doesn't
> catch some cases where there's a $ref to another schema. A fix is pending,
> but results in new warnings in examples.
> 
> 'spi-max-frequency' is supposed to be a per SPI peripheral device property,
> not a SPI controller property, so drop it.
> 
> Signed-off-by: Rob Herring <robh@kernel.org>


Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>


Best regards,
Krzysztof

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

* Re: [PATCH] spi: dt-bindings: Fix unevaluatedProperties warnings in examples
  2022-05-26  1:41 [PATCH] spi: dt-bindings: Fix unevaluatedProperties warnings in examples Rob Herring
  2022-05-26  6:49 ` Krzysztof Kozlowski
@ 2022-05-26  6:52 ` Conor.Dooley
  2022-05-26 14:01   ` Rob Herring
  2022-06-06 16:13 ` Mark Brown
  2 siblings, 1 reply; 6+ messages in thread
From: Conor.Dooley @ 2022-05-26  6:52 UTC (permalink / raw)
  To: robh, broonie, krzysztof.kozlowski+dt, agross, bjorn.andersson
  Cc: krzysztof.kozlowski, linux-spi, devicetree, linux-kernel, linux-arm-msm

On 26/05/2022 02:41, Rob Herring wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
> 
> The 'unevaluatedProperties' schema checks is not fully working and doesn't
> catch some cases where there's a $ref to another schema. A fix is pending,
> but results in new warnings in examples.
> 
> 'spi-max-frequency' is supposed to be a per SPI peripheral device property,
> not a SPI controller property, so drop it.

Reviewed-by: Conor Dooley <conor.dooley@microchip.com>

As this property is in the mpfs devicetree & I'll need to fix it, is this
patch targeted at 5.19? (I assume given the window is open and there's no
fixes tag that it isn't).

As an aside, I meant to send the driver once the merge window closes, so
thanks for spotting a problem with the driver before I even sent it :)

Thanks,
Conor.

> 
> Signed-off-by: Rob Herring <robh@kernel.org>
> ---
>   Documentation/devicetree/bindings/spi/microchip,mpfs-spi.yaml | 1 -
>   Documentation/devicetree/bindings/spi/qcom,spi-geni-qcom.yaml | 1 -
>   2 files changed, 2 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/spi/microchip,mpfs-spi.yaml b/Documentation/devicetree/bindings/spi/microchip,mpfs-spi.yaml
> index ece261b8e963..7326c0a28d16 100644
> --- a/Documentation/devicetree/bindings/spi/microchip,mpfs-spi.yaml
> +++ b/Documentation/devicetree/bindings/spi/microchip,mpfs-spi.yaml
> @@ -47,6 +47,5 @@ examples:
>           clocks = <&clkcfg CLK_SPI0>;
>           interrupt-parent = <&plic>;
>           interrupts = <54>;
> -        spi-max-frequency = <25000000>;
>       };
>   ...
> diff --git a/Documentation/devicetree/bindings/spi/qcom,spi-geni-qcom.yaml b/Documentation/devicetree/bindings/spi/qcom,spi-geni-qcom.yaml
> index e2c7b934c50d..78ceb9d67754 100644
> --- a/Documentation/devicetree/bindings/spi/qcom,spi-geni-qcom.yaml
> +++ b/Documentation/devicetree/bindings/spi/qcom,spi-geni-qcom.yaml
> @@ -110,7 +110,6 @@ examples:
>           pinctrl-names = "default";
>           pinctrl-0 = <&qup_spi1_default>;
>           interrupts = <GIC_SPI 602 IRQ_TYPE_LEVEL_HIGH>;
> -        spi-max-frequency = <50000000>;
>           #address-cells = <1>;
>           #size-cells = <0>;
>       };
> --
> 2.34.1
> 


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

* Re: [PATCH] spi: dt-bindings: Fix unevaluatedProperties warnings in examples
  2022-05-26  6:52 ` Conor.Dooley
@ 2022-05-26 14:01   ` Rob Herring
  2022-05-26 14:08     ` Conor.Dooley
  0 siblings, 1 reply; 6+ messages in thread
From: Rob Herring @ 2022-05-26 14:01 UTC (permalink / raw)
  To: Conor.Dooley
  Cc: broonie, krzysztof.kozlowski+dt, agross, bjorn.andersson,
	krzysztof.kozlowski, linux-spi, devicetree, linux-kernel,
	linux-arm-msm

On Thu, May 26, 2022 at 06:52:23AM +0000, Conor.Dooley@microchip.com wrote:
> On 26/05/2022 02:41, Rob Herring wrote:
> > EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
> > 
> > The 'unevaluatedProperties' schema checks is not fully working and doesn't
> > catch some cases where there's a $ref to another schema. A fix is pending,
> > but results in new warnings in examples.
> > 
> > 'spi-max-frequency' is supposed to be a per SPI peripheral device property,
> > not a SPI controller property, so drop it.
> 
> Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
> 
> As this property is in the mpfs devicetree & I'll need to fix it, is this
> patch targeted at 5.19? (I assume given the window is open and there's no
> fixes tag that it isn't).

5.18 ideally because warnings are going to appear when I push the 
dtschema fix for 'unevaluatedProperties'.

Rob

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

* Re: [PATCH] spi: dt-bindings: Fix unevaluatedProperties warnings in examples
  2022-05-26 14:01   ` Rob Herring
@ 2022-05-26 14:08     ` Conor.Dooley
  0 siblings, 0 replies; 6+ messages in thread
From: Conor.Dooley @ 2022-05-26 14:08 UTC (permalink / raw)
  To: robh
  Cc: broonie, krzysztof.kozlowski+dt, agross, bjorn.andersson,
	krzysztof.kozlowski, linux-spi, devicetree, linux-kernel,
	linux-arm-msm

On 26/05/2022 15:01, Rob Herring wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
> 
> On Thu, May 26, 2022 at 06:52:23AM +0000, Conor.Dooley@microchip.com wrote:
>> On 26/05/2022 02:41, Rob Herring wrote:
>>> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>>>
>>> The 'unevaluatedProperties' schema checks is not fully working and doesn't
>>> catch some cases where there's a $ref to another schema. A fix is pending,
>>> but results in new warnings in examples.
>>>
>>> 'spi-max-frequency' is supposed to be a per SPI peripheral device property,
>>> not a SPI controller property, so drop it.
>>
>> Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
>>
>> As this property is in the mpfs devicetree & I'll need to fix it, is this
>> patch targeted at 5.19? (I assume given the window is open and there's no
>> fixes tag that it isn't).
> 
> 5.18 ideally because warnings are going to appear when I push the

18? That a typo or am I missing something? Either way, will send the dt
fix shortly.
Thanks,
Conor.

> dtschema fix for 'unevaluatedProperties'.
> 
> Rob


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

* Re: [PATCH] spi: dt-bindings: Fix unevaluatedProperties warnings in examples
  2022-05-26  1:41 [PATCH] spi: dt-bindings: Fix unevaluatedProperties warnings in examples Rob Herring
  2022-05-26  6:49 ` Krzysztof Kozlowski
  2022-05-26  6:52 ` Conor.Dooley
@ 2022-06-06 16:13 ` Mark Brown
  2 siblings, 0 replies; 6+ messages in thread
From: Mark Brown @ 2022-06-06 16:13 UTC (permalink / raw)
  To: conor.dooley, agross, krzysztof.kozlowski+dt, bjorn.andersson, robh
  Cc: krzysztof.kozlowski, devicetree, linux-spi, linux-arm-msm, linux-kernel

On Wed, 25 May 2022 20:41:41 -0500, Rob Herring wrote:
> The 'unevaluatedProperties' schema checks is not fully working and doesn't
> catch some cases where there's a $ref to another schema. A fix is pending,
> but results in new warnings in examples.
> 
> 'spi-max-frequency' is supposed to be a per SPI peripheral device property,
> not a SPI controller property, so drop it.
> 
> [...]

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next

Thanks!

[1/1] spi: dt-bindings: Fix unevaluatedProperties warnings in examples
      commit: 6aa27071e4354c351d98e345fc888b70f335f185

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

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

end of thread, other threads:[~2022-06-06 16:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-26  1:41 [PATCH] spi: dt-bindings: Fix unevaluatedProperties warnings in examples Rob Herring
2022-05-26  6:49 ` Krzysztof Kozlowski
2022-05-26  6:52 ` Conor.Dooley
2022-05-26 14:01   ` Rob Herring
2022-05-26 14:08     ` Conor.Dooley
2022-06-06 16:13 ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.