From ca18a9ebf0d6e8be8bebb93957de1d86917910a0 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Mon, 24 Feb 2020 11:29:59 +0100 Subject: clk: initially enable critical clocks Critical clocks have to be enabled initially. We have to do this not only to enable the clock itself, but also to make sure its parents stay enabled and also to correctly enable the new parents during reparenting of the clock. Signed-off-by: Sascha Hauer --- drivers/clk/clk.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'drivers') diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index ea3304bc7c..05bc21a6d4 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -282,6 +282,9 @@ int clk_register(struct clk *clk) list_add_tail(&clk->list, &clks); + if (clk->flags & CLK_IS_CRITICAL) + clk_enable(clk); + return 0; } -- cgit v1.2.3