drm/rockchip: Don't use atomic constructs for psr
authorSean Paul <seanpaul@chromium.org>
Mon, 5 Mar 2018 22:22:54 +0000 (23:22 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Thu, 8 Mar 2018 22:28:53 +0000 (23:28 +0100)
commit60beeccc72cabefcb8874fec542b3142e262b6c2
tree2cd3bd6405f5c4be94c0a6c7c7c9343587777b9b
parent7f3c191b17c3d449ba606c37030257b132ffae06
drm/rockchip: Don't use atomic constructs for psr

Instead of using timer and spinlocks, use delayed_work and
mutexes for rockchip psr. This allows us to make blocking
calls when enabling/disabling psr (which is sort of important
given we're talking over dpcd to the display).

Cc: Caesar Wang <wxt@rock-chips.com>
Cc: 征增 王 <wzz@rock-chips.com>
Cc: Stéphane Marchesin <marcheu@chromium.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Thierry Escande <thierry.escande@collabora.com>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20180305222324.5872-3-enric.balletbo@collabora.com
drivers/gpu/drm/rockchip/rockchip_drm_drv.c
drivers/gpu/drm/rockchip/rockchip_drm_drv.h
drivers/gpu/drm/rockchip/rockchip_drm_psr.c