]> git.karo-electronics.de Git - karo-tx-linux.git/commit
clk: qcom: gdsc: Manage clocks with !CONFIG_PM
authorRajendra Nayak <rnayak@codeaurora.org>
Thu, 6 Aug 2015 10:37:54 +0000 (16:07 +0530)
committerSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Mon, 11 Jan 2016 09:54:46 +0000 (09:54 +0000)
commit09ddb7c31ff739ae53f11579e91becc62a885f3d
tree52ee0a1983c9a457dd017b9bae72f208e6cd5f60
parent2ac564310d6436059a49da060c9678d70beaa3f0
clk: qcom: gdsc: Manage clocks with !CONFIG_PM

With CONFIG_PM disabled, turn the devices clocks on during
driver binding to the device, and turn them off when the
driver is unbound from the device. Platforms can specify
all the clocks that need to be managed in !CONFIG_PM case
using qcom_pm_add_notifier().

The use of pm_clk_add_notifier() isn't appropriate here since we need
to only manage clocks with valid power domain associations done via
DT, instead of what pm_clk_add_notifier() does, which is manage clocks
for all on SoC/off SoC devices associating all of them to a dummy power
domain instead

Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>
drivers/clk/qcom/gdsc.c
drivers/clk/qcom/gdsc.h