Skip to contentSkip to conversation

riscv: dts: starfive: disable unused csi/camss nodes

PATCH Applied Conor Dooley 3 participants 4 messages Oct 16, 2024 – Oct 17, 2024

Subsystems (4)
lore
Share & tools
lore

Conor Dooley

author maintainer
#0 lore raw

PATCH 1/1 riscv: dts: starfive: disable unused csi/camss nodes

From: Conor Dooley <[email protected]>

Aurelien reported probe failures due to the csi node being enabled without having a camera attached to it. A camera was in the initial submissions, but was removed from the dts, as it had not actually been present on the board, but was from an addon board used by the developer of the relevant drivers. The non-camera pipeline nodes were not disabled when this happened and the probe failures are problematic for Debian. Disable them.

Fixes 28ecaaa5af192 ("riscv: dts: starfive: jh7110: Add camera subsystem nodes")

---
CC: Emil Renner Berthing <[email protected]>
CC: Rob Herring <[email protected]>
CC: Krzysztof Kozlowski <[email protected]>
CC: Conor Dooley <[email protected]>
CC: Changhuang Liang <[email protected]>
CC: [email protected]
CC: [email protected]
CC: [email protected]

---
 arch/riscv/boot/dts/starfive/jh7110-common.dtsi | 2 --
 1 file changed, 2 deletions(-)
arch/riscv/boot/dts/starfive/jh7110-common.dtsi +0 -2
index c7771b3b64758..d6c55f1cc96a9 100644
@@ -128,7 +128,6 @@ &camss {
 	assigned-clocks = <&ispcrg JH7110_ISPCLK_DOM4_APB_FUNC>,
 			  <&ispcrg JH7110_ISPCLK_MIPI_RX0_PXL>;
 	assigned-clock-rates = <49500000>, <198000000>;
-	status = "okay";
 
 	ports {
 		#address-cells = <1>;
@@ -151,7 +150,6 @@ camss_from_csi2rx: endpoint {
 &csi2rx {
 	assigned-clocks = <&ispcrg JH7110_ISPCLK_VIN_SYS>;
 	assigned-clock-rates = <297000000>;
-	status = "okay";
 
 	ports {
 		#address-cells = <1>;
Signature · 1 line
2.45.2
Tested-by Reviewed-by on v1 1/1
#1 lore raw

Hi,

Quoted 24 lines · Conor Dooley

From: Conor Dooley <[email protected]>

Aurelien reported probe failures due to the csi node being enabled without having a camera attached to it. A camera was in the initial submissions, but was removed from the dts, as it had not actually been present on the board, but was from an addon board used by the developer of the relevant drivers. The non-camera pipeline nodes were not disabled when this happened and the probe failures are problematic for Debian. Disable them.

Fixes 28ecaaa5af192 ("riscv: dts: starfive: jh7110: Add camera subsystem nodes")

---
CC: Emil Renner Berthing <[email protected]>
CC: Rob Herring <[email protected]>
CC: Krzysztof Kozlowski <[email protected]>
CC: Conor Dooley <[email protected]>
CC: Changhuang Liang <[email protected]>
CC: [email protected]
CC: [email protected]
CC: [email protected]

Quoted 3 lines
---
 arch/riscv/boot/dts/starfive/jh7110-common.dtsi | 2 --
 1 file changed, 2 deletions(-)

Thanks for picking up that issue. I confirm this fix the "problem".

To give some more details, the problem for Debian is that it appears as an error, with the line in red in dmesg or journalctl. However we would like to be able to provide a kernel with such drivers enabled so that users with a camera can just use an overlay or patch their device tree.

Regards
Aurelien

Signature · 2 lines
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
[email protected]                     http://aurel32.net
Reviewed-by on v1 1/1
#2 lore raw
In reply to Conor Dooley
Quoted 10 lines · Conor Dooley

From: Conor Dooley <[email protected]>

Aurelien reported probe failures due to the csi node being enabled without having a camera attached to it. A camera was in the initial submissions, but was removed from the dts, as it had not actually been present on the board, but was from an addon board used by the developer of the relevant drivers. The non-camera pipeline nodes were not disabled when this happened and the probe failures are problematic for Debian. Disable them.

Quoted 5 lines
Fixes 28ecaaa5af192 ("riscv: dts: starfive: jh7110: Add camera subsystem nodes")

Thanks!

Quoted 36 lines

---
CC: Emil Renner Berthing <[email protected]>
CC: Rob Herring <[email protected]>
CC: Krzysztof Kozlowski <[email protected]>
CC: Conor Dooley <[email protected]>
CC: Changhuang Liang <[email protected]>
CC: [email protected]
CC: [email protected]
CC: [email protected]

---
 arch/riscv/boot/dts/starfive/jh7110-common.dtsi | 2 --
 1 file changed, 2 deletions(-)
arch/riscv/boot/dts/starfive/jh7110-common.dtsi +0 -3
index c7771b3b64758..d6c55f1cc96a9 100644
@@ -128,7 +128,6 @@ &camss {
 	assigned-clocks = <&ispcrg JH7110_ISPCLK_DOM4_APB_FUNC>,
 			  <&ispcrg JH7110_ISPCLK_MIPI_RX0_PXL>;
 	assigned-clock-rates = <49500000>, <198000000>;
-	status = "okay";
 
 	ports {
 		#address-cells = <1>;
@@ -151,7 +150,6 @@ camss_from_csi2rx: endpoint {
 &csi2rx {
 	assigned-clocks = <&ispcrg JH7110_ISPCLK_VIN_SYS>;
 	assigned-clock-rates = <297000000>;
-	status = "okay";
 
 	ports {
 		#address-cells = <1>;
--

2.45.2

author maintainer Applied
#3 lore raw
In reply to Conor Dooley

From: Conor Dooley <[email protected]>

Quoted 9 lines · Conor Dooley

Aurelien reported probe failures due to the csi node being enabled without having a camera attached to it. A camera was in the initial submissions, but was removed from the dts, as it had not actually been present on the board, but was from an addon board used by the developer of the relevant drivers. The non-camera pipeline nodes were not disabled when this happened and the probe failures are problematic for Debian. Disable them.

[...]

Applied to riscv-soc-fixes, thanks!

[1/1] riscv: dts: starfive: disable unused csi/camss nodes

      https://git.kernel.org/conor/c/2e11e78667db

Thanks,
Conor.