drm/rockchip: analogix_dp: Refuse to enable PSR if panel doesn't support it
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Fri, 23 Sep 2016 14:06:40 +0000 (16:06 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 4 Oct 2016 06:23:17 +0000 (08:23 +0200)
commit0546d685f07cc4fc5748fd36e57d167877c2842d
tree56b229e308a2efaae292b3bb0d0d8308a39ef518
parent561b069008dcf1b2909aebb7a904a32c7d802a93
drm/rockchip: analogix_dp: Refuse to enable PSR if panel doesn't support it

There's no point in enabling PSR when the panel doesn't support it.

This also avoids a problem when PSR gets enabled when a CRTC is being
disabled, because sometimes in that situation the DSP_HOLD_VALID_INTR
interrupt on which we wait will never arrive. This was observed on
RK3288 with a panel without PSR (veyron-jaq Chromebook).

It's very easy to reproduce by running the kms_rmfb test in IGT a few
times.

Cc: Yakir Yang <ykk@rock-chips.com>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1474639600-30090-2-git-send-email-tomeu.vizoso@collabora.com
drivers/gpu/drm/rockchip/analogix_dp-rockchip.c