Skip to contentSkip to conversation

arm64: dts: qcom: add reset to SDHC on IPQ SoCs

PATCH Applied Kathiravan Thirumoorthy 3 participants 10 messages Dec 3 – Dec 4

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

cover arm64: dts: qcom: add reset to SDHC on IPQ SoCs

Add the GCC SDCC block reset to the SDHCI controller node on IPQ5332, IPQ5424, IPQ5210 and IPQ9650, so the controller can be reset to avoid timeout issues caused by the configuration left behind by the bootloader.

---
Kathiravan Thirumoorthy (4):
arm64: dts: qcom: ipq5332: add reset to SDHC
arm64: dts: qcom: ipq5424: add reset to SDHC
arm64: dts: qcom: ipq5210: add reset to SDHC
arm64: dts: qcom: ipq9650: add reset to SDHC

 arch/arm64/boot/dts/qcom/ipq5210.dtsi | 1 +
 arch/arm64/boot/dts/qcom/ipq5332.dtsi | 1 +
 arch/arm64/boot/dts/qcom/ipq5424.dtsi | 1 +
 arch/arm64/boot/dts/qcom/ipq9650.dtsi | 1 +
 4 files changed, 4 insertions(+)

---
base-commit: 799dd936553182df5770dde7f38d94c8337df75a
change-id: 20261203-ipq_sdhc_reset-f081430004f3

Best regards,

Signature · 1 line
Kathiravan Thirumoorthy <[email protected]>
#1 lore raw

PATCH 1/4 arm64: dts: qcom: ipq5332: add reset to SDHC

Add the reset to the SDHCI controller node, so the controller can be reset to avoid timeout issues caused by the configuration left behind by the bootloader.

---
 arch/arm64/boot/dts/qcom/ipq5332.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/qcom/ipq5332.dtsi +1 -0
index 25c32e966de9..d0347de71f18 100644
@@ -383,6 +383,7 @@ sdhc: mmc@7804000 {
 				 <&gcc GCC_SDCC1_APPS_CLK>,
 				 <&xo_board>;
 			clock-names = "iface", "core", "xo";
+			resets = <&gcc GCC_SDCC_BCR>;
 			status = "disabled";
 		};
 
Signature · 1 line
2.34.1
#2 lore raw

Re: [PATCH 1/4] arm64: dts: qcom: ipq5332: add reset to SDHC

Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] arm64: dts: qcom: missing Fixes trailer for IPQ5332 SDHC reset fix --

Thank you for your contribution! Sashiko AI review found 1 potential issue to consider:
- [Low] arm64: dts: qcom: missing Fixes trailer for IPQ5332 SDHC reset fix
--

commit 398b29ae5ef0956c9476baf29188ee36066d45ff
Author: Kathiravan Thirumoorthy <[email protected]>

Quoted 7 lines

arm64: dts: qcom: ipq5332: add reset to SDHC

Add the reset to the SDHCI controller node, so the controller can be reset to avoid timeout issues caused by the configuration left behind by the bootloader.

[Severity: Low]
This fixes SDHCI timeout issues on IPQ5332, and adding a Fixes tag allows stable trees to pick it up. Should this include:

Fixes 0360f0ea8c0f ("arm64: dts: qcom: add IPQ5332 SoC and MI01.2 board support")
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
#3 lore raw

PATCH 2/4 arm64: dts: qcom: ipq5424: add reset to SDHC

In reply to Kathiravan Thirumoorthy

Add the reset to the SDHCI controller node, so the controller can be reset to avoid timeout issues caused by the configuration left behind by the bootloader.

---
 arch/arm64/boot/dts/qcom/ipq5424.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/qcom/ipq5424.dtsi +1 -0
index 23f851e9241f..16e43926d31b 100644
@@ -566,6 +566,7 @@ sdhc: mmc@7804000 {
 				 <&gcc GCC_SDCC1_APPS_CLK>,
 				 <&xo_board>;
 			clock-names = "iface", "core", "xo";
+			resets = <&gcc GCC_SDCC_BCR>;
 
 			supports-cqe;
 
Signature · 1 line
2.34.1
#4 lore raw

Re: [PATCH 2/4] arm64: dts: qcom: ipq5424: add reset to SDHC

Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] arm64: dts: qcom: ipq5424: missing Fixes trailer for SDHC reset fix --

Thank you for your contribution! Sashiko AI review found 1 potential issue to consider:
- [Low] arm64: dts: qcom: ipq5424: missing Fixes trailer for SDHC reset fix
--

commit 6a8efb83f52a4b465957eaa60f85146480925aad
Author: Kathiravan Thirumoorthy <[email protected]>

Quoted 7 lines

arm64: dts: qcom: ipq5424: add reset to SDHC

Add the reset to the SDHCI controller node, so the controller can be reset to avoid timeout issues caused by the configuration left behind by the bootloader.

[Severity: Low]
This looks like a bug fix for SDHCI timeout issues on IPQ5424. Should this include:

Fixes 1a91d2a6021e ("arm64: dts: qcom: add IPQ5424 SoC and rdp466 board support")
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2
#5 lore raw

PATCH 3/4 arm64: dts: qcom: ipq5210: add reset to SDHC

In reply to Kathiravan Thirumoorthy

Add the reset to the SDHCI controller node, so the controller can be reset to avoid timeout issues caused by the configuration left behind by the bootloader.

---
 arch/arm64/boot/dts/qcom/ipq5210.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/qcom/ipq5210.dtsi +1 -0
index 0c1ede0f73b2..ca0d12c8fd81 100644
@@ -224,6 +224,7 @@ sdhc: mmc@7804000 {
 			clock-names = "iface",
 				      "core",
 				      "xo";
+			resets = <&gcc GCC_SDCC_BCR>;
 			non-removable;
 
 			status = "disabled";
Signature · 1 line
2.34.1
#6 lore raw

Re: [PATCH 3/4] arm64: dts: qcom: ipq5210: add reset to SDHC

Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] arm64: dts: qcom: missing Fixes trailer for IPQ5210 SDHC reset fix --

Thank you for your contribution! Sashiko AI review found 1 potential issue to consider:
- [Low] arm64: dts: qcom: missing Fixes trailer for IPQ5210 SDHC reset fix
--

commit 7d9a36e3da2c9ae6c44fbf990d15bc2fb12f85a9
Author: Kathiravan Thirumoorthy <[email protected]>

Quoted 7 lines

arm64: dts: qcom: ipq5210: add reset to SDHC

Add the reset to the SDHCI controller node, so the controller can be reset to avoid timeout issues caused by the configuration left behind by the bootloader.

[Severity: Low]
Since this fixes SDHCI timeout issues caused by the sdhc node missing its reset property, should this include:

Fixes 4073cf900eb9 ("arm64: dts: qcom: add IPQ5210 SoC and rdp504 board support")
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=3
#7 lore raw

PATCH 4/4 arm64: dts: qcom: ipq9650: add reset to SDHC

In reply to Kathiravan Thirumoorthy

Add the reset to the SDHCI controller node, so the controller can be reset to avoid timeout issues caused by the configuration left behind by the bootloader.

---
 arch/arm64/boot/dts/qcom/ipq9650.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/qcom/ipq9650.dtsi +1 -0
index 9ace638e43e2..19998812dcf2 100644
@@ -428,6 +428,7 @@ sdhc: mmc@7804000 {
 			clock-names = "iface",
 				      "core",
 				      "xo";
+			resets = <&gcc GCC_SDCC_BCR>;
 			non-removable;
 
 			status = "disabled";
Signature · 1 line
2.34.1
#8 lore raw

Re: [PATCH 4/4] arm64: dts: qcom: ipq9650: add reset to SDHC

Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] arm64: dts: qcom: missing Fixes trailer for IPQ9650 SDHC reset fix --

Thank you for your contribution! Sashiko AI review found 1 potential issue to consider:
- [Low] arm64: dts: qcom: missing Fixes trailer for IPQ9650 SDHC reset fix
--

commit caff921ec8727b73a635d64eca3291a921120f9f
Author: Kathiravan Thirumoorthy <[email protected]>

Quoted 7 lines

arm64: dts: qcom: ipq9650: add reset to SDHC

Add the reset to the SDHCI controller node, so the controller can be reset to avoid timeout issues caused by the configuration left behind by the bootloader.

[Severity: Low]
This looks like a bug fix for SDHC timeout issues on IPQ9650, where the sdhc node was added without the GCC_SDCC_BCR reset. Should this include:

Fixes 8cef25a0044d ("arm64: dts: qcom: add IPQ9650 SoC and rdp488 board support")
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=4
maintainer Applied
#9 lore raw
In reply to Kathiravan Thirumoorthy
Quoted 4 lines · Kathiravan Thirumoorthy

Add the GCC SDCC block reset to the SDHCI controller node on IPQ5332, IPQ5424, IPQ5210 and IPQ9650, so the controller can be reset to avoid timeout issues caused by the configuration left behind by the bootloader.

Applied, thanks!

[1/4] arm64: dts: qcom: ipq5332: add reset to SDHC

      commit: cb07c67e6c2521fe1098448c1a2266066d622382
[2/4] arm64: dts: qcom: ipq5424: add reset to SDHC
      commit: 9792d8b8f6e7c835c72effccfe34fab952d96500
[3/4] arm64: dts: qcom: ipq5210: add reset to SDHC
      commit: b23791e20249b89819de0e1051b251458f34fcfc
[4/4] arm64: dts: qcom: ipq9650: add reset to SDHC
      commit: 03542fd0ea2bba44800652b1a4fed9f1bb3616c0

Best regards,

Signature · 1 line
Bjorn Andersson <[email protected]>