drm/rockchip: Improve analogix-dp psr handling
authorSean Paul <seanpaul@chromium.org>
Wed, 17 Aug 2016 00:12:45 +0000 (17:12 -0700)
committerSean Paul <seanpaul@chromium.org>
Tue, 23 Aug 2016 15:44:36 +0000 (11:44 -0400)
commitd761b2df5d30b8a0dc5369390eeb32b7a88bbed5
tree7869cb3b41f57a4426d5ec86d83209937229bd52
parent46bdc64984709419de3f42d3e8b62684af571516
drm/rockchip: Improve analogix-dp psr handling

Remove the delayed worker, opting instead for the non-delayed
variety. Also introduce a lock to ensure we don't have races
with the worker and psr_state. Finally, cancel and wait for
the worker to finish when disabling the bridge.

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