diff options
| author | Osvaldo Banuelos <osvaldob@codeaurora.org> | 2016-05-13 16:55:21 -0700 |
|---|---|---|
| committer | Jeevan Shriram <jshriram@codeaurora.org> | 2016-05-18 13:39:35 -0700 |
| commit | 066d3d627b0ecd76ed4806582a0c8845e7a5ffeb (patch) | |
| tree | 2a1807679065fd6782857086471eaf876d0009ef | |
| parent | 1b30680459373432fdce21746fea58cb50e040ed (diff) | |
clk: msm: osm: fix cores in retention as inactive selection
When SPM_CORE_RET_MAPPING is set to 1, cores in retention
are treated as inactive by the OSM. However, currently
this register is programmed to 0 when the flag to treat
cores in retention as inactive is specified. Fix this.
Change-Id: Ibc5df71ddd0cfdabf82d3c1e47efca0d88823a2f
CRs-Fixed: 1017123
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
| -rw-r--r-- | drivers/clk/msm/clock-osm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clk/msm/clock-osm.c b/drivers/clk/msm/clock-osm.c index baea421badfd..d05516b2ea78 100644 --- a/drivers/clk/msm/clock-osm.c +++ b/drivers/clk/msm/clock-osm.c @@ -1196,10 +1196,10 @@ static int clk_osm_set_cc_policy(struct platform_device *pdev) rc = of_property_read_bool(pdev->dev.of_node, "qcom,set-ret-inactive"); if (rc) { dev_dbg(&pdev->dev, "Treat cores in retention as active\n"); - val = 1; + val = 0; } else { dev_dbg(&pdev->dev, "Treat cores in retention as inactive\n"); - val = 0; + val = 1; } clk_osm_write_reg(&pwrcl_clk, val, SPM_CORE_RET_MAPPING); |
