From 066d3d627b0ecd76ed4806582a0c8845e7a5ffeb Mon Sep 17 00:00:00 2001 From: Osvaldo Banuelos Date: Fri, 13 May 2016 16:55:21 -0700 Subject: [PATCH] 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 --- drivers/clk/msm/clock-osm.c | 4 ++-- 1 file 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);