]> git.karo-electronics.de Git - karo-tx-linux.git/commit
clk: Add safe switch hook
authorStephen Boyd <sboyd@codeaurora.org>
Sat, 21 Mar 2015 06:45:23 +0000 (23:45 -0700)
committerSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Mon, 11 Jan 2016 09:54:47 +0000 (09:54 +0000)
commit78c41251ada254623809807050c8d659c3d30fe5
treee12688980e9072bf384a985e7bb0ae2a4d49ca69
parentb75976117847e6c5f7c7a6fded89e161cd8e0250
clk: Add safe switch hook

Sometimes clocks can't accept their parent source turning off
while the source is reprogrammed to a different rate. Most
notably CPU clocks require a way to switch away from the current
PLL they're running on, reprogram that PLL to a new rate, and
then switch back to the PLL with the new rate once they're done.
Add a hook that drivers can implement allowing them to return a
'safe parent' and 'safe frequency' that they can switch their
parent to while the upstream source is reprogrammed to support
this.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
drivers/clk/clk.c
include/linux/clk-provider.h