Message ID | 20171222034205.GD24403@b29396-OptiPlex-7040 (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 8a1860a..ce5fa96 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -191,6 +191,7 @@ static bool clk_core_is_prepared(struct clk_core *core) static bool clk_core_is_enabled(struct clk_core *core) { + unsigned long flags; bool ret = false; /* @@ -218,7 +219,10 @@ static bool clk_core_is_enabled(struct clk_core *core) } } + flags = clk_enable_lock(); ret = core->ops->is_enabled(core->hw); + clk_enable_unlock(flags); + done: clk_pm_runtime_put(core);