Merge "clk: msm: clock-osm: Fix check to write to the LLM OVERRIDE register"
This commit is contained in:
commit
5a534a3946
1 changed files with 2 additions and 2 deletions
|
@ -460,7 +460,7 @@ static int clk_osm_set_rate(struct clk *c, unsigned long rate)
|
||||||
}
|
}
|
||||||
pr_debug("rate: %lu --> index %d\n", rate, index);
|
pr_debug("rate: %lu --> index %d\n", rate, index);
|
||||||
|
|
||||||
if (cpuclk->llm_sw_overr) {
|
if (cpuclk->llm_sw_overr[0]) {
|
||||||
clk_osm_write_reg(cpuclk, cpuclk->llm_sw_overr[0],
|
clk_osm_write_reg(cpuclk, cpuclk->llm_sw_overr[0],
|
||||||
LLM_SW_OVERRIDE_REG);
|
LLM_SW_OVERRIDE_REG);
|
||||||
clk_osm_write_reg(cpuclk, cpuclk->llm_sw_overr[1],
|
clk_osm_write_reg(cpuclk, cpuclk->llm_sw_overr[1],
|
||||||
|
@ -471,7 +471,7 @@ static int clk_osm_set_rate(struct clk *c, unsigned long rate)
|
||||||
/* Choose index and send request to OSM hardware */
|
/* Choose index and send request to OSM hardware */
|
||||||
clk_osm_write_reg(cpuclk, index, DCVS_PERF_STATE_DESIRED_REG);
|
clk_osm_write_reg(cpuclk, index, DCVS_PERF_STATE_DESIRED_REG);
|
||||||
|
|
||||||
if (cpuclk->llm_sw_overr) {
|
if (cpuclk->llm_sw_overr[0]) {
|
||||||
udelay(1);
|
udelay(1);
|
||||||
clk_osm_write_reg(cpuclk, cpuclk->llm_sw_overr[2],
|
clk_osm_write_reg(cpuclk, cpuclk->llm_sw_overr[2],
|
||||||
LLM_SW_OVERRIDE_REG);
|
LLM_SW_OVERRIDE_REG);
|
||||||
|
|
Loading…
Add table
Reference in a new issue