mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 04:18:39 +08:00
OPP: Pass rounded rate to _set_opp()
The OPP core finds the eventual frequency to set with the help of clk_round_rate() and the same was earlier getting passed to _set_opp() and that's what would get configured. The commit1efae8d2e7
("OPP: Make dev_pm_opp_set_opp() independent of frequency") mistakenly changed that. Fix it. Fixes:1efae8d2e7
("OPP: Make dev_pm_opp_set_opp() independent of frequency") Cc: v5.18+ <stable@vger.kernel.org> # v6.0+ Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
This commit is contained in:
parent
0b40dd3bcf
commit
7269c250db
@ -1352,12 +1352,12 @@ int dev_pm_opp_set_rate(struct device *dev, unsigned long target_freq)
|
||||
* value of the frequency. In such a case, do not abort but
|
||||
* configure the hardware to the desired frequency forcefully.
|
||||
*/
|
||||
forced = opp_table->rate_clk_single != target_freq;
|
||||
forced = opp_table->rate_clk_single != freq;
|
||||
}
|
||||
|
||||
ret = _set_opp(dev, opp_table, opp, &target_freq, forced);
|
||||
ret = _set_opp(dev, opp_table, opp, &freq, forced);
|
||||
|
||||
if (target_freq)
|
||||
if (freq)
|
||||
dev_pm_opp_put(opp);
|
||||
|
||||
put_opp_table:
|
||||
|
Loading…
Reference in New Issue
Block a user