Skip to content

Commit

Permalink
ARM: dts: s3c64xx: Fix init order of clock providers
Browse files Browse the repository at this point in the history
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: 3f6d439 ("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>
  • Loading branch information
Lihua Yao authored and Krzysztof Kozlowski committed Oct 8, 2019
1 parent 56c126e commit d60d0cf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/arm/boot/dts/s3c6410-mini6410.dts
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@
};
};

&clocks {
clocks = <&fin_pll>;
};

&sdhci0 {
pinctrl-names = "default";
pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
Expand Down
4 changes: 4 additions & 0 deletions arch/arm/boot/dts/s3c6410-smdk6410.dts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@
};
};

&clocks {
clocks = <&fin_pll>;
};

&sdhci0 {
pinctrl-names = "default";
pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
Expand Down

0 comments on commit d60d0cf

Please sign in to comment.