Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: s3c64xx: Fix init order of clock providers

fin_pll is the parent of clock-controller@7e00f000, specify
the dependency to ensure proper initialization order of clock
providers.

without this patch:
[ 0.000000] S3C6410 clocks: apll = 0, mpll = 0
[ 0.000000] epll = 0, arm_clk = 0

with this patch:
[ 0.000000] S3C6410 clocks: apll = 532000000, mpll = 532000000
[ 0.000000] epll = 24000000, arm_clk = 532000000

Cc: <stable@vger.kernel.org>
Fixes: 3f6d439f2022 ("clk: reverse default clk provider initialization order in of_clk_init()")
Signed-off-by: Lihua Yao <ylhuajnu@outlook.com>
Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>

authored by

Lihua Yao and committed by
Krzysztof Kozlowski
d60d0cff 56c126e8

+8
+4
arch/arm/boot/dts/s3c6410-mini6410.dts
··· 165 165 }; 166 166 }; 167 167 168 + &clocks { 169 + clocks = <&fin_pll>; 170 + }; 171 + 168 172 &sdhci0 { 169 173 pinctrl-names = "default"; 170 174 pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
+4
arch/arm/boot/dts/s3c6410-smdk6410.dts
··· 69 69 }; 70 70 }; 71 71 72 + &clocks { 73 + clocks = <&fin_pll>; 74 + }; 75 + 72 76 &sdhci0 { 73 77 pinctrl-names = "default"; 74 78 pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;