]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf5ce7901f257bd44dccb3739e38c57b52dc1df87
tree69f3d2616dbb1d2310cda2512f593a9fab7b9004
parent33c3fc03757096f967759a3e37160fc57ffae6c9
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