linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] sh: j2: drop incorrect SPI controller max frequency property
@ 2024-03-22  6:42 Krzysztof Kozlowski
  2024-03-30  4:44 ` Rob Landley
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Krzysztof Kozlowski @ 2024-03-22  6:42 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Yoshinori Sato,
	Rich Felker, John Paul Adrian Glaubitz, devicetree, linux-sh,
	linux-kernel
  Cc: Krzysztof Kozlowski, Kousik Sanagavarapu

The J2 SPI controller bindings never allowed spi-max-frequency property
in the controller node.  Neither old spi-bus.txt bindings, nor new DT
schema allows it.  Linux driver does not parse that property from
controller node, thus drop it from DTS as incorrect hardware
description.  The SPI child device has already the same property with
the same value, so functionality should not be affected.

Cc: Kousik Sanagavarapu <five231003@gmail.com>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 arch/sh/boot/dts/j2_mimas_v2.dts | 2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/sh/boot/dts/j2_mimas_v2.dts b/arch/sh/boot/dts/j2_mimas_v2.dts
index fa9562f78d53..faf884f53804 100644
--- a/arch/sh/boot/dts/j2_mimas_v2.dts
+++ b/arch/sh/boot/dts/j2_mimas_v2.dts
@@ -71,8 +71,6 @@ spi0: spi@40 {
 			#address-cells = <1>;
 			#size-cells = <0>;
 
-			spi-max-frequency = <25000000>;
-
 			reg = <0x40 0x8>;
 
 			sdcard@0 {
-- 
2.34.1


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

* Re: [PATCH] sh: j2: drop incorrect SPI controller max frequency property
  2024-03-22  6:42 [PATCH] sh: j2: drop incorrect SPI controller max frequency property Krzysztof Kozlowski
@ 2024-03-30  4:44 ` Rob Landley
  2024-04-24  6:48 ` Krzysztof Kozlowski
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 10+ messages in thread
From: Rob Landley @ 2024-03-30  4:44 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Yoshinori Sato, Rich Felker,
	John Paul Adrian Glaubitz, devicetree, linux-sh, linux-kernel
  Cc: Kousik Sanagavarapu

On 3/22/24 01:42, Krzysztof Kozlowski wrote:
> The J2 SPI controller bindings never allowed spi-max-frequency property
> in the controller node.  Neither old spi-bus.txt bindings, nor new DT
> schema allows it.  Linux driver does not parse that property from
> controller node, thus drop it from DTS as incorrect hardware
> description.  The SPI child device has already the same property with
> the same value, so functionality should not be affected.
> 
> Cc: Kousik Sanagavarapu <five231003@gmail.com>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Tested-by: Rob Landley <rob@landley.net>

(By which I mean a 6.8 kernel with this patch applied booted to a shell prompt
on my J2 turtle board.)

Rob

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

* Re: [PATCH] sh: j2: drop incorrect SPI controller max frequency property
  2024-03-22  6:42 [PATCH] sh: j2: drop incorrect SPI controller max frequency property Krzysztof Kozlowski
  2024-03-30  4:44 ` Rob Landley
@ 2024-04-24  6:48 ` Krzysztof Kozlowski
  2024-04-24  6:59   ` D. Jeff Dionne
                     ` (2 more replies)
  2024-04-29  8:16 ` John Paul Adrian Glaubitz
  2024-05-02 10:28 ` John Paul Adrian Glaubitz
  3 siblings, 3 replies; 10+ messages in thread
From: Krzysztof Kozlowski @ 2024-04-24  6:48 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Yoshinori Sato,
	Rich Felker, John Paul Adrian Glaubitz, devicetree, linux-sh,
	linux-kernel, Krzysztof Kozlowski
  Cc: Kousik Sanagavarapu


On Fri, 22 Mar 2024 07:42:21 +0100, Krzysztof Kozlowski wrote:
> The J2 SPI controller bindings never allowed spi-max-frequency property
> in the controller node.  Neither old spi-bus.txt bindings, nor new DT
> schema allows it.  Linux driver does not parse that property from
> controller node, thus drop it from DTS as incorrect hardware
> description.  The SPI child device has already the same property with
> the same value, so functionality should not be affected.
> 
> [...]

Month passed, no replies from maintainers about picking it up. Dunno, looks
abandoned, so let me grab this. If anyone else wants to pick it up, let me
know.

Applied, thanks!

[1/1] sh: j2: drop incorrect SPI controller max frequency property
      https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux-dt.git/commit/?h=next/dt&id=cc92bf017f7c66c8a4050c61a7d11ddfd43f5cee

Best regards,
-- 
Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

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

* Re: [PATCH] sh: j2: drop incorrect SPI controller max frequency property
  2024-04-24  6:48 ` Krzysztof Kozlowski
@ 2024-04-24  6:59   ` D. Jeff Dionne
  2024-04-24  7:24     ` Krzysztof Kozlowski
  2024-04-24  7:08   ` John Paul Adrian Glaubitz
  2024-04-24  7:25   ` Krzysztof Kozlowski
  2 siblings, 1 reply; 10+ messages in thread
From: D. Jeff Dionne @ 2024-04-24  6:59 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Yoshinori Sato,
	Rich Felker, John Paul Adrian Glaubitz, devicetree, linux-sh,
	linux-kernel, Kousik Sanagavarapu

Adrian,

IMHO, this driver should go through the SH tree.  Thanks Rob, for testing the patch.

J.

> On Apr 24, 2024, at 3:48 PM, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> wrote:
> 
> 
> On Fri, 22 Mar 2024 07:42:21 +0100, Krzysztof Kozlowski wrote:
>> The J2 SPI controller bindings never allowed spi-max-frequency property
>> in the controller node.  Neither old spi-bus.txt bindings, nor new DT
>> schema allows it.  Linux driver does not parse that property from
>> controller node, thus drop it from DTS as incorrect hardware
>> description.  The SPI child device has already the same property with
>> the same value, so functionality should not be affected.
>> 
>> [...]
> 
> Month passed, no replies from maintainers about picking it up. Dunno, looks
> abandoned, so let me grab this. If anyone else wants to pick it up, let me
> know.
> 
> Applied, thanks!
> 
> [1/1] sh: j2: drop incorrect SPI controller max frequency property
>      https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux-dt.git/commit/?h=next/dt&id=cc92bf017f7c66c8a4050c61a7d11ddfd43f5cee
> 
> Best regards,
> -- 
> Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> 


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

* Re: [PATCH] sh: j2: drop incorrect SPI controller max frequency property
  2024-04-24  6:48 ` Krzysztof Kozlowski
  2024-04-24  6:59   ` D. Jeff Dionne
@ 2024-04-24  7:08   ` John Paul Adrian Glaubitz
  2024-04-24  7:25   ` Krzysztof Kozlowski
  2 siblings, 0 replies; 10+ messages in thread
From: John Paul Adrian Glaubitz @ 2024-04-24  7:08 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Yoshinori Sato, Rich Felker, devicetree, linux-sh,
	linux-kernel
  Cc: Kousik Sanagavarapu

On Wed, 2024-04-24 at 08:48 +0200, Krzysztof Kozlowski wrote:
> On Fri, 22 Mar 2024 07:42:21 +0100, Krzysztof Kozlowski wrote:
> > The J2 SPI controller bindings never allowed spi-max-frequency property
> > in the controller node.  Neither old spi-bus.txt bindings, nor new DT
> > schema allows it.  Linux driver does not parse that property from
> > controller node, thus drop it from DTS as incorrect hardware
> > description.  The SPI child device has already the same property with
> > the same value, so functionality should not be affected.
> > 
> > [...]
> 
> Month passed, no replies from maintainers about picking it up. Dunno, looks
> abandoned, so let me grab this. If anyone else wants to pick it up, let me
> know.

I'll pick it up this weekend.

Sorry, I have been quite busy the past weeks with my dayjob.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

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

* Re: [PATCH] sh: j2: drop incorrect SPI controller max frequency property
  2024-04-24  6:59   ` D. Jeff Dionne
@ 2024-04-24  7:24     ` Krzysztof Kozlowski
  0 siblings, 0 replies; 10+ messages in thread
From: Krzysztof Kozlowski @ 2024-04-24  7:24 UTC (permalink / raw)
  To: D. Jeff Dionne
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Yoshinori Sato,
	Rich Felker, John Paul Adrian Glaubitz, devicetree, linux-sh,
	linux-kernel, Kousik Sanagavarapu

On 24/04/2024 08:59, D. Jeff Dionne wrote:
> Adrian,
> 
> IMHO, this driver should go through the SH tree.  Thanks Rob, for testing the patch.

Of course it should go via SH tree, that's not the point here. I don't
want to take sh patches.

Best regards,
Krzysztof


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

* Re: [PATCH] sh: j2: drop incorrect SPI controller max frequency property
  2024-04-24  6:48 ` Krzysztof Kozlowski
  2024-04-24  6:59   ` D. Jeff Dionne
  2024-04-24  7:08   ` John Paul Adrian Glaubitz
@ 2024-04-24  7:25   ` Krzysztof Kozlowski
  2 siblings, 0 replies; 10+ messages in thread
From: Krzysztof Kozlowski @ 2024-04-24  7:25 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Yoshinori Sato,
	Rich Felker, John Paul Adrian Glaubitz, devicetree, linux-sh,
	linux-kernel
  Cc: Kousik Sanagavarapu

On 24/04/2024 08:48, Krzysztof Kozlowski wrote:
> 
> On Fri, 22 Mar 2024 07:42:21 +0100, Krzysztof Kozlowski wrote:
>> The J2 SPI controller bindings never allowed spi-max-frequency property
>> in the controller node.  Neither old spi-bus.txt bindings, nor new DT
>> schema allows it.  Linux driver does not parse that property from
>> controller node, thus drop it from DTS as incorrect hardware
>> description.  The SPI child device has already the same property with
>> the same value, so functionality should not be affected.
>>
>> [...]
> 
> Month passed, no replies from maintainers about picking it up. Dunno, looks
> abandoned, so let me grab this. If anyone else wants to pick it up, let me
> know.

Dropped now.

Best regards,
Krzysztof


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

* Re: [PATCH] sh: j2: drop incorrect SPI controller max frequency property
  2024-03-22  6:42 [PATCH] sh: j2: drop incorrect SPI controller max frequency property Krzysztof Kozlowski
  2024-03-30  4:44 ` Rob Landley
  2024-04-24  6:48 ` Krzysztof Kozlowski
@ 2024-04-29  8:16 ` John Paul Adrian Glaubitz
  2024-04-29  8:50   ` Krzysztof Kozlowski
  2024-05-02 10:28 ` John Paul Adrian Glaubitz
  3 siblings, 1 reply; 10+ messages in thread
From: John Paul Adrian Glaubitz @ 2024-04-29  8:16 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Yoshinori Sato, Rich Felker, devicetree, linux-sh,
	linux-kernel
  Cc: Kousik Sanagavarapu

On Fri, 2024-03-22 at 07:42 +0100, Krzysztof Kozlowski wrote:
> The J2 SPI controller bindings never allowed spi-max-frequency property
> in the controller node.  Neither old spi-bus.txt bindings, nor new DT
> schema allows it.  Linux driver does not parse that property from
> controller node, thus drop it from DTS as incorrect hardware
> description.  The SPI child device has already the same property with
> the same value, so functionality should not be affected.
> 
> Cc: Kousik Sanagavarapu <five231003@gmail.com>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
>  arch/sh/boot/dts/j2_mimas_v2.dts | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/arch/sh/boot/dts/j2_mimas_v2.dts b/arch/sh/boot/dts/j2_mimas_v2.dts
> index fa9562f78d53..faf884f53804 100644
> --- a/arch/sh/boot/dts/j2_mimas_v2.dts
> +++ b/arch/sh/boot/dts/j2_mimas_v2.dts
> @@ -71,8 +71,6 @@ spi0: spi@40 {
>  			#address-cells = <1>;
>  			#size-cells = <0>;
>  
> -			spi-max-frequency = <25000000>;
> -
>  			reg = <0x40 0x8>;
>  
>  			sdcard@0 {

It seems that spi-bus.txt has been replaced by spi-controller.yaml now, so
I think we should update the filename in the commit message, shouldn't we?

Besides that, I agree with the changes.

Reviewed-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

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

* Re: [PATCH] sh: j2: drop incorrect SPI controller max frequency property
  2024-04-29  8:16 ` John Paul Adrian Glaubitz
@ 2024-04-29  8:50   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 10+ messages in thread
From: Krzysztof Kozlowski @ 2024-04-29  8:50 UTC (permalink / raw)
  To: John Paul Adrian Glaubitz, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Yoshinori Sato, Rich Felker, devicetree, linux-sh,
	linux-kernel
  Cc: Kousik Sanagavarapu

On 29/04/2024 10:16, John Paul Adrian Glaubitz wrote:
> On Fri, 2024-03-22 at 07:42 +0100, Krzysztof Kozlowski wrote:
>> The J2 SPI controller bindings never allowed spi-max-frequency property
>> in the controller node.  Neither old spi-bus.txt bindings, nor new DT
>> schema allows it.  Linux driver does not parse that property from
>> controller node, thus drop it from DTS as incorrect hardware
>> description.  The SPI child device has already the same property with
>> the same value, so functionality should not be affected.
>>
>> Cc: Kousik Sanagavarapu <five231003@gmail.com>
>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>> ---
>>  arch/sh/boot/dts/j2_mimas_v2.dts | 2 --
>>  1 file changed, 2 deletions(-)
>>
>> diff --git a/arch/sh/boot/dts/j2_mimas_v2.dts b/arch/sh/boot/dts/j2_mimas_v2.dts
>> index fa9562f78d53..faf884f53804 100644
>> --- a/arch/sh/boot/dts/j2_mimas_v2.dts
>> +++ b/arch/sh/boot/dts/j2_mimas_v2.dts
>> @@ -71,8 +71,6 @@ spi0: spi@40 {
>>  			#address-cells = <1>;
>>  			#size-cells = <0>;
>>  
>> -			spi-max-frequency = <25000000>;
>> -
>>  			reg = <0x40 0x8>;
>>  
>>  			sdcard@0 {
> 
> It seems that spi-bus.txt has been replaced by spi-controller.yaml now, so
> I think we should update the filename in the commit message, shouldn't we?

I think commit msg properly says what is old and what is new....

Best regards,
Krzysztof


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

* Re: [PATCH] sh: j2: drop incorrect SPI controller max frequency property
  2024-03-22  6:42 [PATCH] sh: j2: drop incorrect SPI controller max frequency property Krzysztof Kozlowski
                   ` (2 preceding siblings ...)
  2024-04-29  8:16 ` John Paul Adrian Glaubitz
@ 2024-05-02 10:28 ` John Paul Adrian Glaubitz
  3 siblings, 0 replies; 10+ messages in thread
From: John Paul Adrian Glaubitz @ 2024-05-02 10:28 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Yoshinori Sato, Rich Felker, devicetree, linux-sh,
	linux-kernel
  Cc: Kousik Sanagavarapu

On Fri, 2024-03-22 at 07:42 +0100, Krzysztof Kozlowski wrote:
> The J2 SPI controller bindings never allowed spi-max-frequency property
> in the controller node.  Neither old spi-bus.txt bindings, nor new DT
> schema allows it.  Linux driver does not parse that property from
> controller node, thus drop it from DTS as incorrect hardware
> description.  The SPI child device has already the same property with
> the same value, so functionality should not be affected.
> 
> Cc: Kousik Sanagavarapu <five231003@gmail.com>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
>  arch/sh/boot/dts/j2_mimas_v2.dts | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/arch/sh/boot/dts/j2_mimas_v2.dts b/arch/sh/boot/dts/j2_mimas_v2.dts
> index fa9562f78d53..faf884f53804 100644
> --- a/arch/sh/boot/dts/j2_mimas_v2.dts
> +++ b/arch/sh/boot/dts/j2_mimas_v2.dts
> @@ -71,8 +71,6 @@ spi0: spi@40 {
>  			#address-cells = <1>;
>  			#size-cells = <0>;
>  
> -			spi-max-frequency = <25000000>;
> -
>  			reg = <0x40 0x8>;
>  
>  			sdcard@0 {

Applied to my sh-linux tree in the for-next branch.

Thanks,
Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

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

end of thread, other threads:[~2024-05-02 10:28 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-22  6:42 [PATCH] sh: j2: drop incorrect SPI controller max frequency property Krzysztof Kozlowski
2024-03-30  4:44 ` Rob Landley
2024-04-24  6:48 ` Krzysztof Kozlowski
2024-04-24  6:59   ` D. Jeff Dionne
2024-04-24  7:24     ` Krzysztof Kozlowski
2024-04-24  7:08   ` John Paul Adrian Glaubitz
2024-04-24  7:25   ` Krzysztof Kozlowski
2024-04-29  8:16 ` John Paul Adrian Glaubitz
2024-04-29  8:50   ` Krzysztof Kozlowski
2024-05-02 10:28 ` John Paul Adrian Glaubitz

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