Skip to contentSkip to conversation

ARM: dts: exynos: revert "add input clock to CMU in Exynos4412 Odroid"

PATCH Applied Krzysztof Kozlowski 1 participant 2 messages Sep 21, 2020 – Sep 22, 2020

Subsystems (2)
lore
Share & tools
lore

Krzysztof Kozlowski

author maintainer
#0 lore raw

PATCH 1/1 ARM: dts: exynos: revert "add input clock to CMU in Exynos4412 Odroid"

This reverts commit eaf2d2f6895d676dda6c95a652b58594f2887720.

The commit eaf2d2f6895d ("ARM: dts: exynos: add input clock to CMU in Exynos4412 Odroid") breaks probing of usb3503 USB hub on Odroid U3.

It changes the order of clock drivers probe: the clkout (Exynos PMU) driver is probed before the main clk-exynos4 driver. The clkout driver on Exynos4412 depends on clk-exynos4 but it does not support deferred probe, therefore this dependency and changed probe order causes probe failure.

The usb3503 USB hub on Odroid U3 on the other hand requires clkout clock. This can be seen in logs:

    [    5.007442] usb3503 0-0008: unable to request refclk (-517)
---
 arch/arm/boot/dts/exynos4412-odroid-common.dtsi | 1 -
 1 file changed, 1 deletion(-)
arch/arm/boot/dts/exynos4412-odroid-common.dtsi +0 -1
index ab291cec650a..2983e91bc7dd 100644
@@ -122,7 +122,6 @@
 };
 
 &clock {
-	clocks = <&clock CLK_XUSBXTI>;
 	assigned-clocks = <&clock CLK_FOUT_EPLL>;
 	assigned-clock-rates = <45158401>;
 };
Signature · 1 line
2.17.1
author maintainer Applied
#1 lore raw
Quoted 14 lines · Krzysztof Kozlowski

This reverts commit eaf2d2f6895d676dda6c95a652b58594f2887720.

The commit eaf2d2f6895d ("ARM: dts: exynos: add input clock to CMU in Exynos4412 Odroid") breaks probing of usb3503 USB hub on Odroid U3.

It changes the order of clock drivers probe: the clkout (Exynos PMU) driver is probed before the main clk-exynos4 driver. The clkout driver on Exynos4412 depends on clk-exynos4 but it does not support deferred probe, therefore this dependency and changed probe order causes probe failure.

The usb3503 USB hub on Odroid U3 on the other hand requires clkout clock. This can be seen in logs:

Quoted 6 lines
    [    5.007442] usb3503 0-0008: unable to request refclk (-517)
---
 arch/arm/boot/dts/exynos4412-odroid-common.dtsi | 1 -

Applied.

Best regards,
Krzysztof