Merge "clk: fix critical clock locking"
This commit is contained in:
commit
a95f91f51a
1 changed files with 5 additions and 0 deletions
|
@ -3128,8 +3128,13 @@ static int __clk_init(struct device *dev, struct clk *clk_user)
|
|||
core->ops->init(core->hw);
|
||||
|
||||
if (core->flags & CLK_IS_CRITICAL) {
|
||||
unsigned long flags;
|
||||
|
||||
clk_core_prepare(core);
|
||||
|
||||
flags = clk_enable_lock();
|
||||
clk_core_enable(core);
|
||||
clk_enable_unlock(flags);
|
||||
}
|
||||
|
||||
kref_init(&core->ref);
|
||||
|
|
Loading…
Add table
Reference in a new issue