Skip to content

Commit 2df73f4

Browse files
committed
clk: sun6i: Protect CPU clock
Right now, AHB is an indirect child clock of the CPU clock. If that happens to change, since the CPU clock has no other consumers declared in Linux, it would be shut down, which is not really a good idea. Prevent this by forcing it enabled. Signed-off-by: Maxime Ripard <[email protected]> Acked-by: Mike Turquette <[email protected]> Signed-off-by: Emilio López <[email protected]>
1 parent 134a669 commit 2df73f4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/clk/sunxi/clk-sunxi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,6 +1226,7 @@ CLK_OF_DECLARE(sun5i_a13_clk_init, "allwinner,sun5i-a13", sun5i_init_clocks);
12261226
CLK_OF_DECLARE(sun7i_a20_clk_init, "allwinner,sun7i-a20", sun5i_init_clocks);
12271227

12281228
static const char *sun6i_critical_clocks[] __initdata = {
1229+
"cpu",
12291230
};
12301231

12311232
static void __init sun6i_init_clocks(struct device_node *node)

0 commit comments

Comments
 (0)