OSDN Git Service

clk: qcom: gdsc: Add support for votable gdscs
authorRajendra Nayak <rnayak@codeaurora.org>
Tue, 1 Dec 2015 16:12:13 +0000 (21:42 +0530)
committerStephen Boyd <sboyd@codeaurora.org>
Fri, 12 Feb 2016 00:24:53 +0000 (16:24 -0800)
commita823bb9fbefbac8d8bf37d5b4879ee876f2356c5
tree500a14ca99fd063c1b270ee6e7c53dc27a29e033
parent77b1067a19b4986b009f3279cc6b8ad1d29ff51c
clk: qcom: gdsc: Add support for votable gdscs

Some gdscs might be controlled via voting registers and might not
really disable when the kernel intends to disable them (due to other
votes keeping them enabled)
Mark these gdscs with a flag for we do not check/wait on a disable
status for these gdscs within the kernel disable callback.

Also at boot, if these GDSCs are found to be ON, we make sure we
vote for them before we inform the genpd framework about their
status. If genpd gets no users, it then disables (removes the vote)
them as part of genpd_poweroff_unused()

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