drm/msm: dsi: Use OPP API to set clk/perf state
authorRajendra Nayak <rnayak@codeaurora.org>
Thu, 9 Jul 2020 11:04:32 +0000 (16:34 +0530)
committerRob Clark <robdclark@chromium.org>
Fri, 31 Jul 2020 13:46:15 +0000 (06:46 -0700)
commit32d3e0feccfe2d07e73aaa322766ab04b3c9d594
tree291f1cd580ce53d778a1eb2d1f0970bb20b1138e
parentb0530eb1191307e9038d75e5c83973a396137681
drm/msm: dsi: Use OPP API to set clk/perf state

On SDM845 and SC7180 DSI needs to express a performance state
requirement on a power domain depending on the clock rates.
Use OPP table from DT to register with OPP framework and use
dev_pm_opp_set_rate() to set the clk/perf state.

dev_pm_opp_set_rate() is designed to be equivalent to clk_set_rate()
for devices without an OPP table, hence the change works fine
on devices/platforms which only need to set a clock rate.

Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/dsi/dsi_host.c