Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 066d3d62 authored by Osvaldo Banuelos's avatar Osvaldo Banuelos Committed by Jeevan Shriram
Browse files

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: default avatarOsvaldo Banuelos <osvaldob@codeaurora.org>
parent 1b306804
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);