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

Commit 79c1dc2f authored by Amit Nischal's avatar Amit Nischal
Browse files

clk: qcom: clk-cpu-osm: correct the logic to check per-core DCVS status



This change would fix the logic to check the status of per-core DCVS
from the CORE_DCVS_CTRL register.  

Change-Id: I0b2b36fe86d265d6e7f34f8acde19f8f02c0371a
Signed-off-by: default avatarAmit Nischal <anischal@codeaurora.org>
parent a8118139
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1188,11 +1188,11 @@ static int clk_cpu_osm_driver_probe(struct platform_device *pdev)

	/* Check if per-core DCVS is enabled/not */
	val = clk_osm_read_reg(&pwrcl_clk, CORE_DCVS_CTRL);
	if (val && BIT(0))
	if (val & BIT(0))
		pwrcl_clk.per_core_dcvs = true;

	val = clk_osm_read_reg(&perfcl_clk, CORE_DCVS_CTRL);
	if (val && BIT(0))
	if (val & BIT(0))
		perfcl_clk.per_core_dcvs = true;

	rc = clk_osm_read_lut(pdev, &l3_clk);