mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v1] riscv: dts: starfive: Remove PMIC interrupt info for Visionfive 2 board
@ 2024-03-05 17:11 Shengyu Qu
  2024-03-05 19:41 ` Conor Dooley
  0 siblings, 1 reply; 3+ messages in thread
From: Shengyu Qu @ 2024-03-05 17:11 UTC (permalink / raw)
  To: ganboing, kernel, conor, robh+dt, krzysztof.kozlowski+dt,
	paul.walmsley, palmer, aou, lee, andre.przywara, jernej.skrabec,
	linux-riscv, devicetree, linux-kernel
  Cc: Shengyu Qu, stable

Since commit b2cb2ae22278f1918f7526b89760ee00b4a81393 ("mfd: axp20x:
Generalise handling without interrupt"), interrupt info part for the
AXP15060 PMIC is not needed anymore for Statfive Visionfive 2 board.
And this would cause kernel to try to enable interrupt line 0, which is
not expected. So delete this part from device tree.

Cc: stable@vger.kernel.org
Fixes: b2cb2ae22278 ("mfd: axp20x: Generalise handling without interrupt")
Reported-by: Bo Gan <ganboing@gmail.com>
Signed-off-by: Shengyu Qu <wiagn233@outlook.com>
---
 arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi
index b89e9791efa7..6bebabe3fa37 100644
--- a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi
+++ b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi
@@ -189,9 +189,6 @@ &i2c5 {
 	axp15060: pmic@36 {
 		compatible = "x-powers,axp15060";
 		reg = <0x36>;
-		interrupts = <0>;
-		interrupt-controller;
-		#interrupt-cells = <1>;
 
 		regulators {
 			vcc_3v3: dcdc1 {
-- 
2.39.2


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

* Re: [PATCH v1] riscv: dts: starfive: Remove PMIC interrupt info for Visionfive 2 board
  2024-03-05 17:11 [PATCH v1] riscv: dts: starfive: Remove PMIC interrupt info for Visionfive 2 board Shengyu Qu
@ 2024-03-05 19:41 ` Conor Dooley
  2024-03-05 23:24   ` Qu Shengyu
  0 siblings, 1 reply; 3+ messages in thread
From: Conor Dooley @ 2024-03-05 19:41 UTC (permalink / raw)
  To: Shengyu Qu
  Cc: ganboing, kernel, robh+dt, krzysztof.kozlowski+dt, paul.walmsley,
	palmer, aou, lee, andre.przywara, jernej.skrabec, linux-riscv,
	devicetree, linux-kernel, stable

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

On Wed, Mar 06, 2024 at 01:11:50AM +0800, Shengyu Qu wrote:
> Since commit b2cb2ae22278f1918f7526b89760ee00b4a81393 ("mfd: axp20x:
> Generalise handling without interrupt"), interrupt info part for the
> AXP15060 PMIC is not needed anymore for Statfive Visionfive 2 board.
> And this would cause kernel to try to enable interrupt line 0, which is
> not expected. So delete this part from device tree.

interrupt-controller/#interrupt-cells are required properties, you can't
delete them. If you ran dtbs_check you'd see that it complains about
this patch.

If you just remove the interrupts property, what happens?

> Cc: stable@vger.kernel.org
> Fixes: b2cb2ae22278 ("mfd: axp20x: Generalise handling without interrupt")

This Fixes tag cannot be right, a dts patch cannot fix a driver. The dts
patch that incorrectly said this used interrupt 0 is what should be in the
Fixes tag.

Thanks,
Conor.

> Reported-by: Bo Gan <ganboing@gmail.com>

Closes: https://lore.kernel.org/linux-riscv/c8b6e960-2459-130f-e4e4-7c9c2ebaa6d3@gmail.com/

> Signed-off-by: Shengyu Qu <wiagn233@outlook.com>
> ---
>  arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi | 3 ---
>  1 file changed, 3 deletions(-)
> 
> diff --git a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi
> index b89e9791efa7..6bebabe3fa37 100644
> --- a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi
> +++ b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi
> @@ -189,9 +189,6 @@ &i2c5 {
>  	axp15060: pmic@36 {
>  		compatible = "x-powers,axp15060";
>  		reg = <0x36>;
> -		interrupts = <0>;
> -		interrupt-controller;
> -		#interrupt-cells = <1>;
>  
>  		regulators {
>  			vcc_3v3: dcdc1 {
> -- 
> 2.39.2
> 

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

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

* Re: [PATCH v1] riscv: dts: starfive: Remove PMIC interrupt info for Visionfive 2 board
  2024-03-05 19:41 ` Conor Dooley
@ 2024-03-05 23:24   ` Qu Shengyu
  0 siblings, 0 replies; 3+ messages in thread
From: Qu Shengyu @ 2024-03-05 23:24 UTC (permalink / raw)
  To: Conor Dooley
  Cc: Qu Shengyu, ganboing, kernel, robh+dt, krzysztof.kozlowski+dt,
	paul.walmsley, palmer, aou, lee, andre.przywara, jernej.skrabec,
	linux-riscv, devicetree, linux-kernel, stable

Hi Conor,

Thanks for reply. I’m sorry for this, but my distro’s dt-schema
is too old to run dtbs-check. Will fix in next version.

Best regards

> 在 2024年3月6日,03:41,Conor Dooley <conor@kernel.org> 写道:
> 
> On Wed, Mar 06, 2024 at 01:11:50AM +0800, Shengyu Qu wrote:
>> Since commit b2cb2ae22278f1918f7526b89760ee00b4a81393 ("mfd: axp20x:
>> Generalise handling without interrupt"), interrupt info part for the
>> AXP15060 PMIC is not needed anymore for Statfive Visionfive 2 board.
>> And this would cause kernel to try to enable interrupt line 0, which is
>> not expected. So delete this part from device tree.
> 
> interrupt-controller/#interrupt-cells are required properties, you can't
> delete them. If you ran dtbs_check you'd see that it complains about
> this patch.
> 
> If you just remove the interrupts property, what happens?
> 
>> Cc: stable@vger.kernel.org
>> Fixes: b2cb2ae22278 ("mfd: axp20x: Generalise handling without interrupt")
> 
> This Fixes tag cannot be right, a dts patch cannot fix a driver. The dts
> patch that incorrectly said this used interrupt 0 is what should be in the
> Fixes tag.
> 
> Thanks,
> Conor.
> 
>> Reported-by: Bo Gan <ganboing@gmail.com>
> 
> Closes: https://lore.kernel.org/linux-riscv/c8b6e960-2459-130f-e4e4-7c9c2ebaa6d3@gmail.com/
> 
>> Signed-off-by: Shengyu Qu <wiagn233@outlook.com>
>> ---
>> arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi | 3 ---
>> 1 file changed, 3 deletions(-)
>> 
>> diff --git a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi
>> index b89e9791efa7..6bebabe3fa37 100644
>> --- a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi
>> +++ b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi
>> @@ -189,9 +189,6 @@ &i2c5 {
>>    axp15060: pmic@36 {
>>        compatible = "x-powers,axp15060";
>>        reg = <0x36>;
>> -        interrupts = <0>;
>> -        interrupt-controller;
>> -        #interrupt-cells = <1>;
>> 
>>        regulators {
>>            vcc_3v3: dcdc1 {
>> --
>> 2.39.2
>> 

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

end of thread, other threads:[~2024-03-05 23:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-05 17:11 [PATCH v1] riscv: dts: starfive: Remove PMIC interrupt info for Visionfive 2 board Shengyu Qu
2024-03-05 19:41 ` Conor Dooley
2024-03-05 23:24   ` Qu Shengyu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®