Skip to content

Commit ef80c95

Browse files
VDavid003krzk
authored andcommitted
clk: samsung: exynos7885: Correct "div4" clock parents
"div4" DIVs which divide PLLs by 4 are actually dividing "div2" DIVs by 2 to achieve a by 4 division, thus their parents are the respective "div2" DIVs. These DIVs were mistakenly set to have the PLLs as parents. This leads to the kernel thinking "div4"s and everything under them run at 2x the clock speed. Fix this. Fixes: 45bd816 ("clk: samsung: Add initial Exynos7885 clock driver") Signed-off-by: David Virag <[email protected]> Acked-by: Chanwoo Choi <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Krzysztof Kozlowski <[email protected]>
1 parent 9abf231 commit ef80c95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/clk/samsung/clk-exynos7885.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,15 +231,15 @@ static const struct samsung_div_clock top_div_clks[] __initconst = {
231231
CLK_CON_DIV_PLL_SHARED0_DIV2, 0, 1),
232232
DIV(CLK_DOUT_SHARED0_DIV3, "dout_shared0_div3", "fout_shared0_pll",
233233
CLK_CON_DIV_PLL_SHARED0_DIV3, 0, 2),
234-
DIV(CLK_DOUT_SHARED0_DIV4, "dout_shared0_div4", "fout_shared0_pll",
234+
DIV(CLK_DOUT_SHARED0_DIV4, "dout_shared0_div4", "dout_shared0_div2",
235235
CLK_CON_DIV_PLL_SHARED0_DIV4, 0, 1),
236236
DIV(CLK_DOUT_SHARED0_DIV5, "dout_shared0_div5", "fout_shared0_pll",
237237
CLK_CON_DIV_PLL_SHARED0_DIV5, 0, 3),
238238
DIV(CLK_DOUT_SHARED1_DIV2, "dout_shared1_div2", "fout_shared1_pll",
239239
CLK_CON_DIV_PLL_SHARED1_DIV2, 0, 1),
240240
DIV(CLK_DOUT_SHARED1_DIV3, "dout_shared1_div3", "fout_shared1_pll",
241241
CLK_CON_DIV_PLL_SHARED1_DIV3, 0, 2),
242-
DIV(CLK_DOUT_SHARED1_DIV4, "dout_shared1_div4", "fout_shared1_pll",
242+
DIV(CLK_DOUT_SHARED1_DIV4, "dout_shared1_div4", "dout_shared1_div2",
243243
CLK_CON_DIV_PLL_SHARED1_DIV4, 0, 1),
244244

245245
/* CORE */

0 commit comments

Comments
 (0)