Skip to contentSkip to conversation

riscv: dts: sophgo: remove address-cells from intc node

PATCH Applied Conor Dooley 4 participants 5 messages Oct 24, 2023 – Jan 20, 2024

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 riscv: dts: sophgo: remove address-cells from intc node

From: Conor Dooley <[email protected]>

A recent submission [1] from Rob has added additionalProperties: false to the interrupt-controller child node of RISC-V cpus, highlighting that the new cv1800b DT has been incorrectly using #address-cells. It has no child nodes, so #address-cells is not needed. Remove it.

Fixes c3dffa879cca ("riscv: dts: sophgo: add initial CV1800B SoC device tree")

---
CC: Chao Wei <[email protected]>
CC: Chen Wang <[email protected]>
CC: Rob Herring <[email protected]>
CC: Krzysztof Kozlowski <[email protected]>
CC: Paul Walmsley <[email protected]>
CC: Palmer Dabbelt <[email protected]>
CC: Albert Ou <[email protected]>
CC: [email protected]
CC: [email protected]
CC: [email protected]

---
 arch/riscv/boot/dts/sophgo/cv1800b.dtsi | 1 -
 1 file changed, 1 deletion(-)
arch/riscv/boot/dts/sophgo/cv1800b.dtsi +0 -1
index df40e87ee063..aec6401a467b 100644
@@ -34,7 +34,6 @@ cpu0: cpu@0 {
 			cpu0_intc: interrupt-controller {
 				compatible = "riscv,cpu-intc";
 				interrupt-controller;
-				#address-cells = <0>;
 				#interrupt-cells = <1>;
 			};
 		};
Signature · 1 line
2.39.2
Acked-by on v1 1/1
#1 lore raw
Quoted 30 lines · Conor Dooley

From: Conor Dooley <[email protected]>

A recent submission [1] from Rob has added additionalProperties: false to the interrupt-controller child node of RISC-V cpus, highlighting that the new cv1800b DT has been incorrectly using #address-cells. It has no child nodes, so #address-cells is not needed. Remove it.

Fixes c3dffa879cca ("riscv: dts: sophgo: add initial CV1800B SoC device tree")

---
CC: Chao Wei <[email protected]>
CC: Chen Wang <[email protected]>
CC: Rob Herring <[email protected]>
CC: Krzysztof Kozlowski <[email protected]>
CC: Paul Walmsley <[email protected]>
CC: Palmer Dabbelt <[email protected]>
CC: Albert Ou <[email protected]>
CC: [email protected]
CC: [email protected]
CC: [email protected]

---
  arch/riscv/boot/dts/sophgo/cv1800b.dtsi | 1 -
  1 file changed, 1 deletion(-)
arch/riscv/boot/dts/sophgo/cv1800b.dtsi +0 -0
index df40e87ee063..aec6401a467b 100644

arch/riscv/boot/dts/sophgo/cv1800b.dtsi cpu0: cpu@0 { · line 39

Quoted 7 lines
arch/riscv/boot/dts/sophgo/cv1800b.dtsi +0 -1
@@ -34,7 +34,6 @@ cpu0: cpu@0 {
  			cpu0_intc: interrupt-controller {
  				compatible = "riscv,cpu-intc";
  				interrupt-controller;
-				#address-cells = <0>;
  				#interrupt-cells = <1>;
  			};
  		};

Thanks,btw, will it be merged in 6.7?

Looping Jisheng who is working on Duo/cv1800b.

Reviewed-by
#2 lore raw
Quoted 4 lines · Chen Wang
Quoted 2 lines · Conor Dooley

From: Conor Dooley <[email protected]>

Quoted 8 lines
Quoted 8 lines

A recent submission [1] from Rob has added additionalProperties: false to the interrupt-controller child node of RISC-V cpus, highlighting that the new cv1800b DT has been incorrectly using #address-cells. It has no child nodes, so #address-cells is not needed. Remove it.

Fixes c3dffa879cca ("riscv: dts: sophgo: add initial CV1800B SoC device tree")

Nice catch!

Quoted 30 lines
Quoted 20 lines

---
CC: Chao Wei <[email protected]>
CC: Chen Wang <[email protected]>
CC: Rob Herring <[email protected]>
CC: Krzysztof Kozlowski <[email protected]>
CC: Paul Walmsley <[email protected]>
CC: Palmer Dabbelt <[email protected]>
CC: Albert Ou <[email protected]>
CC: [email protected]
CC: [email protected]
CC: [email protected]

---
  arch/riscv/boot/dts/sophgo/cv1800b.dtsi | 1 -
  1 file changed, 1 deletion(-)
arch/riscv/boot/dts/sophgo/cv1800b.dtsi +0 -0
index df40e87ee063..aec6401a467b 100644

arch/riscv/boot/dts/sophgo/cv1800b.dtsi cpu0: cpu@0 { · line 39

Quoted 7 lines
arch/riscv/boot/dts/sophgo/cv1800b.dtsi +0 -1
@@ -34,7 +34,6 @@ cpu0: cpu@0 {
  			cpu0_intc: interrupt-controller {
  				compatible = "riscv,cpu-intc";
  				interrupt-controller;
-				#address-cells = <0>;
  				#interrupt-cells = <1>;
  			};
  		};
Quoted 1 line

Thanks,btw, will it be merged in 6.7?

Don't worry, this is a fix, I think Conor will submit fix PR once rc1 is out.

Quoted 3 lines

Looping Jisheng who is working on Duo/cv1800b.

#3 lore raw
Quoted 3 lines · Jisheng Zhang
Quoted 1 line

Thanks,btw, will it be merged in 6.7?

Don't worry, this is a fix, I think Conor will submit fix PR once rc1 is out.

Yup. There's no harmful affects at runtime, it's just a fix for some dtbs_check warnings that I noticed in linux-next. I'll send it as part of a fixes PR at some point after -rc1.

Cheers,
Conor.

#4 lore raw
In reply to Conor Dooley
This patch was applied to riscv/linux.git (fixes) by Conor Dooley <[email protected]>:

Hello:

This patch was applied to riscv/linux.git (fixes)
by Conor Dooley <[email protected]>:

Quoted 8 lines · On Tue, 24 Oct 2023 09:20:35 +0100 you wrote:

From: Conor Dooley <[email protected]>

A recent submission [1] from Rob has added additionalProperties: false to the interrupt-controller child node of RISC-V cpus, highlighting that the new cv1800b DT has been incorrectly using #address-cells. It has no child nodes, so #address-cells is not needed. Remove it.

[...]

Here is the summary with links:
- [v1] riscv: dts: sophgo: remove address-cells from intc node

    https://git.kernel.org/riscv/c/e80ed63affc9

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html