PM / devfreq: rk3399_dmc: Block PMU during transitions
authorBrian Norris <briannorris@chromium.org>
Wed, 6 Apr 2022 01:48:42 +0000 (18:48 -0700)
committerChanwoo Choi <cw00.choi@samsung.com>
Sun, 8 May 2022 18:38:07 +0000 (03:38 +0900)
commit2e691421a2c9e0462175fe98171afa632861b199
treeb3a244ec01e25c91a720d4a33a70476fdac2ef8b
parentdefec178df76e0caadd4e8ef68f3d655a2088198
PM / devfreq: rk3399_dmc: Block PMU during transitions

See the previous patch ("soc: rockchip: power-domain: Manage resource
conflicts with firmware") for a thorough explanation of the conflicts.
While ARM Trusted Firmware may be modifying memory controller and
power-domain states, we need to block the kernel's power-domain driver.

If the power-domain driver is disabled, there is no resource conflict
and this becomes a no-op.

Signed-off-by: Brian Norris <briannorris@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/devfreq/rk3399_dmc.c