diff options
author | Chris Zhong <zyw@rock-chips.com> | 2017-02-05 15:55:01 +0800 |
---|---|---|
committer | Mark Yao <mark.yao@rock-chips.com> | 2017-02-05 16:30:04 +0800 |
commit | 13e0e2069401f2692cf25eb3c7f61137b5f9902d (patch) | |
tree | 69f3d2616dbb1d2310cda2512f593a9fab7b9004 /drivers/gpu/drm/rockchip/cdn-dp-core.h | |
parent | be0270e4d14656d36e76c098ebe822ca2fc34044 (diff) | |
download | talos-obmc-linux-13e0e2069401f2692cf25eb3c7f61137b5f9902d.tar.gz talos-obmc-linux-13e0e2069401f2692cf25eb3c7f61137b5f9902d.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/rockchip/cdn-dp-core.h')
-rw-r--r-- | drivers/gpu/drm/rockchip/cdn-dp-core.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/rockchip/cdn-dp-core.h b/drivers/gpu/drm/rockchip/cdn-dp-core.h index 7d48661362c8..f57e296401b8 100644 --- a/drivers/gpu/drm/rockchip/cdn-dp-core.h +++ b/drivers/gpu/drm/rockchip/cdn-dp-core.h @@ -104,6 +104,7 @@ struct cdn_dp_device { struct cdn_dp_port *port[MAX_PHY]; u8 ports; u8 lanes; + int active_port; u8 dpcd[DP_RECEIVER_CAP_SIZE]; bool sink_has_audio; |