diff options
author | Heiko Stübner <heiko@sntech.de> | 2015-01-16 17:52:44 +0100 |
---|---|---|
committer | Michael Turquette <mturquette@linaro.org> | 2015-01-17 20:22:39 +0100 |
commit | a5e1baf7dca10f8cf945394034013260297bc416 (patch) | |
tree | f0c356cefcfa6d70d450323b56f46d20f88790c9 /MAINTAINERS | |
parent | clk: berlin: bg2q: remove non-exist "smemc" gate clock (diff) | |
download | linux-a5e1baf7dca10f8cf945394034013260297bc416.tar.xz linux-a5e1baf7dca10f8cf945394034013260297bc416.zip |
clk: rockchip: fix deadlock possibility in cpuclk
Lockdep reported a possible deadlock between the cpuclk lock and for example
the i2c driver.
CPU0 CPU1
---- ----
lock(clk_lock);
local_irq_disable();
lock(&(&i2c->lock)->rlock);
lock(clk_lock);
<Interrupt>
lock(&(&i2c->lock)->rlock);
*** DEADLOCK ***
The generic clock-types of the core ccf already use spin_lock_irqsave when
touching clock registers, so do the same for the cpuclk.
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Doug Anderson <dianders@chromium.org>
Signed-off-by: Michael Turquette <mturquette@linaro.org>
[mturquette@linaro.org: removed initialization of "flags"]
Diffstat (limited to 'MAINTAINERS')
0 files changed, 0 insertions, 0 deletions