]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Feb 2019 19:02:23 +0000 (20:02 +0100)
commit9c77d1a5311e95522abedf797285afa49f10d920
tree00b373a3b9a46aadeac7fede11eacc11f6498cc3
parent368aa93b49cc6482df6375d59adf9943b46f890b
drm/amd/display: Add retry to read ddc_clock pin

[ Upstream commit bd4905a9583c760da31ded7256dca6f71483c3dc ]

[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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/dc/core/dc_link.c