diff options
author | Rajendra Nayak <rnayak@codeaurora.org> | 2015-08-06 16:07:45 +0530 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2015-09-16 15:22:40 -0700 |
commit | 3c53f5e2179874441a1741ec7bcbaa92fcec9c79 (patch) | |
tree | aeae5905dbba90978553308f31a7f72cbc5ba129 /drivers/clk/qcom/common.c | |
parent | 014e193ccd197d15b6f7bf6d3d616600091c14ad (diff) |
clk: qcom: gdsc: Add support for ON only state
Certain devices can have GDSCs' which support ON as the only state.
They can't be power collapsed to either hit RET or OFF.
The clients drivers for these GDSCs' however would expect the state
of the core to be reset following a GDSC disable and re-enable.
To do this assert/deassert reset lines every time the client
driver would request the GDSC to be powered on/off instead.
Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/qcom/common.c')
-rw-r--r-- | drivers/clk/qcom/common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/clk/qcom/common.c b/drivers/clk/qcom/common.c index dc51a63c9625..150692879e92 100644 --- a/drivers/clk/qcom/common.c +++ b/drivers/clk/qcom/common.c @@ -125,7 +125,8 @@ int qcom_cc_really_probe(struct platform_device *pdev, goto err_reset; if (desc->gdscs && desc->num_gdscs) { - ret = gdsc_register(dev, desc->gdscs, desc->num_gdscs, regmap); + ret = gdsc_register(dev, desc->gdscs, desc->num_gdscs, + &reset->rcdev, regmap); if (ret) goto err_pd; } |