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

Commit 2d5df4af authored by Osvaldo Banuelos's avatar Osvaldo Banuelos
Browse files

clk: msm: clock-osm: fix read-modify-write for LLM volt vote register



Currently, LLM_INTF_DCVS_DISABLE register is written values
directly instead of doing a read-modify-write. Fix this.

CRs-Fixed: 1101488
Change-Id: I1f99dc4b37e809cdc6fb4cafe7fb0b6d585cbd76
Signed-off-by: default avatarOsvaldo Banuelos <osvaldob@codeaurora.org>
parent a80e267a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1850,9 +1850,9 @@ static int clk_osm_set_llm_volt_policy(struct platform_device *pdev)

	/* Enable or disable LLM VOLT DVCS */
	regval = val | clk_osm_read_reg(&pwrcl_clk, LLM_INTF_DCVS_DISABLE);
	clk_osm_write_reg(&pwrcl_clk, val, LLM_INTF_DCVS_DISABLE);
	clk_osm_write_reg(&pwrcl_clk, regval, LLM_INTF_DCVS_DISABLE);
	regval = val | clk_osm_read_reg(&perfcl_clk, LLM_INTF_DCVS_DISABLE);
	clk_osm_write_reg(&perfcl_clk, val, LLM_INTF_DCVS_DISABLE);
	clk_osm_write_reg(&perfcl_clk, regval, LLM_INTF_DCVS_DISABLE);

	/* Wait for the writes to complete */
	clk_osm_mb(&perfcl_clk, OSM_BASE);