OPP: Pass rounded rate to _set_opp()
authorViresh Kumar <viresh.kumar@linaro.org>
Fri, 5 Jan 2024 08:25:37 +0000 (13:55 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Fri, 5 Jan 2024 10:23:28 +0000 (15:53 +0530)
commit7269c250db1b89cda72ca419b7bd5e37997309d6
treeafe09cb6fff1f221c72b5be1149c1655fe26e295
parent0b40dd3bcfc6f521e6ac0e297ecdcc391d5cc4bb
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 commit 1efae8d2e777 ("OPP: Make dev_pm_opp_set_opp() independent of
frequency") mistakenly changed that. Fix it.

Fixes: 1efae8d2e777 ("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>
drivers/opp/core.c