]> git.karo-electronics.de Git - linux-beck.git/commit
clk: lpc18xx-ccu: fix potential system hang when disabling unused clocks
authorJoachim Eastwood <manabian@gmail.com>
Sat, 24 Oct 2015 16:55:23 +0000 (18:55 +0200)
committerStephen Boyd <sboyd@codeaurora.org>
Mon, 26 Oct 2015 19:36:56 +0000 (12:36 -0700)
commit2a9a06f98f26654d3b07482319ea0be276689f0b
tree72a89b76df2c69c926c7421a4794d41da8b7786f
parentbe68bf883170b3e4123fc4ff3745e38fb45a573e
clk: lpc18xx-ccu: fix potential system hang when disabling unused clocks

CCU branch clock register must only be accessed while the base
(parent) clock is running. Access with a disabled base clock
will cause the system to hang. Fix this issue by adding code
that check if the parent clock is running in the is_enabled
clk_ops callback.

This hang would occur when disabling unused clocks after AMBA
runtime pm had already disabled some of the clocks.

Signed-off-by: Joachim Eastwood <manabian@gmail.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/nxp/clk-lpc18xx-ccu.c