Revert "drm/rockchip: vop2: Use regcache_sync() to fix suspend/resume"
authorAndy Yan <andy.yan@rock-chips.com>
Mon, 11 Dec 2023 11:57:19 +0000 (19:57 +0800)
committerHeiko Stuebner <heiko@sntech.de>
Wed, 13 Dec 2023 14:17:46 +0000 (15:17 +0100)
commit81a06f1d02e588cfa14c5e5953d9dc50b1d404be
tree3ddabbaed2ce34f5d64dfc632d928392b4c28821
parent8c8546546f256f834e9c7cab48e5946df340d1a8
Revert "drm/rockchip: vop2: Use regcache_sync() to fix suspend/resume"

This reverts commit b63a553e8f5aa6574eeb535a551817a93c426d8c.

regcache_sync will try to reload the configuration in regcache to
hardware, but the registers of 4 Cluster windows and Esmart1/2/3 on
the upcoming rk3588 can not be set successfully before internal PD
power on.

Also it's better to keep the hardware register as it is before we really
enable it.

So let's revert this version, and keep the first version:
commit afa965a45e01 ("drm/rockchip: vop2: fix suspend/resume")

Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Reviewed-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20231211115719.1784834-1-andyshrk@163.com
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c