]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Don't disable DP PHY when link loss happens
authorZhan Liu <zhan.liu@amd.com>
Mon, 23 Dec 2019 20:37:24 +0000 (15:37 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 14 Jan 2020 15:18:09 +0000 (10:18 -0500)
commita7184359a28e3a83a906cc0a136313dd1b8a18ec
tree250894b42fcdf7c94185e702d7e910febe036e41
parent03e4d67165998973a13b2936a2f602540466b469
drm/amd/display: Don't disable DP PHY when link loss happens

[Why]
There is a use case that link loss happens accidentally,
and we need to recover that link loss as soon as possible.
Under this circumstance, we will perform link training,
and try to recover the link that's just lost.

However, if link PHY is disabled before link training
happens, then DP display will never come back again.

Also, please note that dropping this disable_phy function
call won't break USB-C hotplug functionality.
(This line of code was firstly introduced associated with
a patch to fix USB-C hotplug issue)

[How]
Don't disable DP transmitter and its encoder before link
training happens, even if link loss is detected.

Signed-off-by: Zhan Liu <zhan.liu@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c