PM / devfreq: tegra30: Register config_clks helper
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 4 Jul 2022 15:40:08 +0000 (21:10 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Tue, 12 Jul 2022 15:05:21 +0000 (20:35 +0530)
commit1b195626850d90663d17299bd378db30f23307e4
tree58548187aa41adb290396044c7782c104e940753
parent2f71ae1a9e75a675dfc9da03f5e191e858d1126f
PM / devfreq: tegra30: Register config_clks helper

There is a corner case with Tegra30, where we want to skip clk
configuration that happens via dev_pm_opp_set_opp(), but still want the
OPP core to read the "opp-hz" property so we can find the right OPP via
freq finding helpers.

The OPP core provides support for the platforms to provide config_clks
helpers now, lets use that instead of devm_pm_opp_of_add_table_noclk()
to achieve the same result, as the OPP core won't parse the DT's
"opp-hz" property anymore if the clock isn't provided.

Tested-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/devfreq/tegra30-devfreq.c