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:
parent
a80e267a8c
commit
2d5df4af1a
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue