]> git.baikalelectronics.ru Git - kernel.git/commit
drm/lima: Fix opp clkname setting in case of missing regulator
authorErico Nunes <nunes.erico@gmail.com>
Thu, 27 Oct 2022 07:32:00 +0000 (09:32 +0200)
committerQiang Yu <yuq825@gmail.com>
Mon, 14 Nov 2022 11:08:21 +0000 (19:08 +0800)
commitc6b0891826d1499b5e294a360b6c893f3cf5adeb
treefab2362320af10f6c3ddd365aeeef131a39c3440
parenta6a3318f8da66719648ee0c72cab86a870e9cfc6
drm/lima: Fix opp clkname setting in case of missing regulator

Commit 5d723fec460c ("drm/lima: Migrate to dev_pm_opp_set_config()")
introduced a regression as it may undo the clk_names setting in case
the optional regulator is missing. This resulted in test and performance
regressions with lima.

Restore the old behavior where clk_names is set separately so it is not
undone in case of a missing optional regulator.

Fixes: 5d723fec460c ("drm/lima: Migrate to dev_pm_opp_set_config()")
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221027073200.3885839-1-nunes.erico@gmail.com
drivers/gpu/drm/lima/lima_devfreq.c