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: Osvaldo Banuelos <osvaldob@codeaurora.org>
This commit is contained in:
Osvaldo Banuelos 2016-12-14 12:09:53 -08:00
parent a80e267a8c
commit 2d5df4af1a

View file

@ -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);