drm/bridge: analogix_dp: detect Sink PSR state after configuring the PSR
authorYakir Yang <ykk@rock-chips.com>
Fri, 9 Mar 2018 22:22:52 +0000 (23:22 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Wed, 14 Mar 2018 10:29:30 +0000 (11:29 +0100)
commit1d38e421bebd6ca24283dd88c4416378ee89825e
treea8074382c19f5805e60fcc196f17cef72621823c
parent2c17a4368aad2b88b68e4390c819e226cf320f70
drm/bridge: analogix_dp: detect Sink PSR state after configuring the PSR

Make sure the request PSR state takes effect in analogix_dp_send_psr_spd()
function, or print the sink PSR error state if we failed to apply the
requested PSR setting.

Cc: 征增 王 <wzz@rock-chips.com>
Cc: Stéphane Marchesin <marcheu@chromium.org>
Signed-off-by: Yakir Yang <ykk@rock-chips.com>
[seanpaul changed timeout loop to a readx poll]
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>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20180309222327.18689-2-enric.balletbo@collabora.com
drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
drivers/gpu/drm/bridge/analogix/analogix_dp_core.h
drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c