Skip to contentSkip to conversation

arm64: dts: ensure backward compatibility of the AP807 Xenon

PATCH In review Marcin Wojtas 3 participants 6 messages Mar 22, 2021 – Jun 17, 2021

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

PATCH 1/1 arm64: dts: ensure backward compatibility of the AP807 Xenon

A recent switch to a dedicated AP807 compatible string for the Xenon SD/MMC controller result in the driver not being probed when using updated device tree with the older kernel revisions. It may also be problematic for other OSs/firmware that use Linux device tree sources as a reference. Resolve the problem with backward compatibility by restoring a previous compatible string as secondary one.

---
 arch/arm64/boot/dts/marvell/armada-ap807.dtsi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/marvell/armada-ap807.dtsi +2 -1
index d9bbbfa4b4eb..4a23f65d475f 100644
@@ -29,6 +29,7 @@ cpu_clk: clock-cpu {
 };
 
 &ap_sdhci0 {
-	compatible = "marvell,armada-ap807-sdhci";
+	compatible = "marvell,armada-ap807-sdhci",
+		     "marvell,armada-ap806-sdhci"; /* Backward compatibility */
 };
 
Signature · 1 line
2.29.0
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Marcin Wojtas

A recent switch to a dedicated AP807 compatible string for the Xenon SD/MMC controller result in the driver not being probed when using updated device tree with the older kernel revisions. It may also be problematic for other OSs/firmware that use Linux device tree sources as a reference. Resolve the problem with backward compatibility by restoring a previous compatible string as secondary one.

Andrew

#2 lore raw

Hi Gregory,

pon., 22 mar 2021 o 13:14 Andrew Lunn <[email protected]> napisał(a):

Quoted 10 lines · Marcin Wojtas
Quoted 8 lines

A recent switch to a dedicated AP807 compatible string for the Xenon SD/MMC controller result in the driver not being probed when using updated device tree with the older kernel revisions. It may also be problematic for other OSs/firmware that use Linux device tree sources as a reference. Resolve the problem with backward compatibility by restoring a previous compatible string as secondary one.

Quoted 4 lines
Quoted 1 line

Do you have any feedback about this patch? I just noticed it's not merged in v5.13-rc1, it would be great to have it in the next release though.

Best regards,
Marcin

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#3 lore raw

Hi!

śr., 12 maj 2021 o 17:50 Marcin Wojtas <[email protected]> napisał(a):

Quoted 14 lines

Hi Gregory,

pon., 22 mar 2021 o 13:14 Andrew Lunn <[email protected]> napisał(a):

Quoted 10 lines · Marcin Wojtas
Quoted 8 lines

A recent switch to a dedicated AP807 compatible string for the Xenon SD/MMC controller result in the driver not being probed when using updated device tree with the older kernel revisions. It may also be problematic for other OSs/firmware that use Linux device tree sources as a reference. Resolve the problem with backward compatibility by restoring a previous compatible string as secondary one.

Quoted 9 lines
Quoted 4 lines
Quoted 1 line

Do you have any feedback about this patch? I just noticed it's not merged in v5.13-rc1, it would be great to have it in the next release though.

Kind reminder. We are approaching v5.13 and it would be really great to have this fix in time.

Thanks,
Marcin

maintainer
#4 lore raw
In reply to Marcin Wojtas

Hi Marcin,

Quoted 9 lines

A recent switch to a dedicated AP807 compatible string for the Xenon SD/MMC controller result in the driver not being probed when using updated device tree with the older kernel revisions. It may also be problematic for other OSs/firmware that use Linux device tree sources as a reference. Resolve the problem with backward compatibility by restoring a previous compatible string as secondary one.

Applied on mvebu/dt64

Thanks,

Gregory

Quoted 25 lines
---
 arch/arm64/boot/dts/marvell/armada-ap807.dtsi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/marvell/armada-ap807.dtsi +2 -1
index d9bbbfa4b4eb..4a23f65d475f 100644
@@ -29,6 +29,7 @@ cpu_clk: clock-cpu {
 };
 
 &ap_sdhci0 {
-	compatible = "marvell,armada-ap807-sdhci";
+	compatible = "marvell,armada-ap807-sdhci",
+		     "marvell,armada-ap806-sdhci"; /* Backward compatibility */
 };
 
Signature · 7 lines
2.29.0


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Signature · 8 lines
Gregory Clement, Bootlin
Embedded Linux and Kernel engineering
http://bootlin.com

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#5 lore raw

czw., 17 cze 2021 o 15:14 Gregory CLEMENT
<[email protected]> napisał(a):

Quoted 11 lines

Hi Marcin,

Quoted 8 lines

A recent switch to a dedicated AP807 compatible string for the Xenon SD/MMC controller result in the driver not being probed when using updated device tree with the older kernel revisions. It may also be problematic for other OSs/firmware that use Linux device tree sources as a reference. Resolve the problem with backward compatibility by restoring a previous compatible string as secondary one.

Quoted 4 lines
Quoted 1 line

Applied on mvebu/dt64

Thank you!
Marcin

Quoted 31 lines
Quoted 22 lines
---
 arch/arm64/boot/dts/marvell/armada-ap807.dtsi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/marvell/armada-ap807.dtsi +2 -2
index d9bbbfa4b4eb..4a23f65d475f 100644
@@ -29,6 +29,7 @@ cpu_clk: clock-cpu {
 };
 
 &ap_sdhci0 {
-     compatible = "marvell,armada-ap807-sdhci";
+     compatible = "marvell,armada-ap807-sdhci",
+                  "marvell,armada-ap806-sdhci"; /* Backward compatibility */
 };
 
--

2.29.0

Quoted 4 lines

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

--
Gregory Clement, Bootlin
Embedded Linux and Kernel engineering
http://bootlin.com