OPP: Allow config_clks helper for single clk case
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 4 Jul 2022 15:37:28 +0000 (21:07 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Tue, 12 Jul 2022 15:05:21 +0000 (20:35 +0530)
commit2f71ae1a9e75a675dfc9da03f5e191e858d1126f
tree2952c168e9310f3e197dde3aa406319340c93fcf
parent8174a3a613af1a911ab19da812824f7180b261f9
OPP: Allow config_clks helper for single clk case

There is a corner case with Tegra30, where we want to skip clk
configuration 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.

This is the easiest of the ways to make it work, without any special
hacks in the OPP core. Allow config_clks to be passed for single clk
case.

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