drm/rockchip: cdn-dp: retry to check sink count
authorChris Zhong <zyw@rock-chips.com>
Sun, 5 Feb 2017 07:55:01 +0000 (15:55 +0800)
committerMark Yao <mark.yao@rock-chips.com>
Sun, 5 Feb 2017 08:30:04 +0000 (16:30 +0800)
commit13e0e2069401f2692cf25eb3c7f61137b5f9902d
tree69f3d2616dbb1d2310cda2512f593a9fab7b9004
parentbe0270e4d14656d36e76c098ebe822ca2fc34044
drm/rockchip: cdn-dp: retry to check sink count

Sometimes the Dock is disconnected, but cdn_dp_encoder_disable is not
triggered by DRM. For example, unplug the Dock in console mode, and
re-plug it again, the cdn_dp_event_work will try to get the sink count
of Dock, since the DP is still active. But the Dock has been powered
down, it need re-power on, and wait for a while until it is ready to
DPCD communication.

Signed-off-by: Chris Zhong <zyw@rock-chips.com>
drivers/gpu/drm/rockchip/cdn-dp-core.c
drivers/gpu/drm/rockchip/cdn-dp-core.h