drm/rockchip: Don't key off vblank for psr
authorSean Paul <seanpaul@chromium.org>
Thu, 18 Aug 2016 19:01:46 +0000 (12:01 -0700)
committerSean Paul <seanpaul@chromium.org>
Wed, 21 Sep 2016 13:55:47 +0000 (06:55 -0700)
commitb883c9ba18a4d527fddc952a35565e34a5d22e15
tree95c633828ad4820f668515525b4d5ee12e04419c
parent52f13a02b7d5f26feb69bf955bef10fbfaafbd7c
drm/rockchip: Don't key off vblank for psr

Instead of keying off vblank for psr, just flush every time
we get an atomic update. This ensures that cursor updates
will properly disable psr (without turning vblank on/off),
and unifies the paths between fb_dirty and atomic psr
enable/disable.

Reviewed-by: Yakir Yang <ykk@rock-chips.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
drivers/gpu/drm/rockchip/rockchip_drm_fb.c
drivers/gpu/drm/rockchip/rockchip_drm_psr.c
drivers/gpu/drm/rockchip/rockchip_drm_psr.h
drivers/gpu/drm/rockchip/rockchip_drm_vop.c