drm/amd/display: Add retry to read ddc_clock pin
authorPaul Hsieh <paul.hsieh@amd.com>
Thu, 22 Nov 2018 10:43:45 +0000 (18:43 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Dec 2018 23:25:12 +0000 (18:25 -0500)
commitbd4905a9583c760da31ded7256dca6f71483c3dc
treef1dfbfbee5d1fd346cdb51b0965a99174e8c9a6c
parent80adaebd2d411b7d6872a097634848a71eb13d20
drm/amd/display: Add retry to read ddc_clock pin

[WHY]
On customer board, there is one pluse (1v , < 1ms) on
DDC_CLK pin when plug / unplug DP cable. Driver will read
it and config DP to HDMI/DVI dongle.

[HOW]
If there is a real dongle, DDC_CLK should be always pull high.
Try to read again to recovery this special case. Retry times = 3.
Need additional 3ms to detect DP passive dongle(3 failures)

Signed-off-by: Paul Hsieh <paul.hsieh@amd.com>
Reviewed-by: Eric Yang <eric.yang2@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link.c