OSDN Git Service

drm/amd/display: Add w/a to reset PHY before link training in verify_link_cap
authorGeorge Shen <george.shen@amd.com>
Tue, 17 Dec 2019 19:34:33 +0000 (14:34 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 16 Jan 2020 19:15:17 +0000 (14:15 -0500)
commitee76592482d34c56c17dd8b75bf8e30deeb1e6af
tree9d1799d854f9ddc18c4f61206b0448968f6798f5
parent5adc673c775c8dd41cdfda098279a96f954c6ce9
drm/amd/display: Add w/a to reset PHY before link training in verify_link_cap

[Why]
PHY will sometimes be in bad state on hotplugging display from USB-C
dongle.

[How]
Add additional calls to disable and then enable PHY before link training
starts during verify_link_cap.

Signed-off-by: George Shen <george.shen@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
drivers/gpu/drm/amd/display/dc/dc.h
drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c