]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5c0ae6b951b2177354140130163e15417d824f93
tree291f1cd580ce53d778a1eb2d1f0970bb20b1138e
parent3747386762e80a19d8c8b3b12afb15431f94075f
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