drm/amd/display: Retry link training again
authorBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Fri, 13 Jul 2018 22:00:06 +0000 (18:00 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 27 Jul 2018 14:07:42 +0000 (09:07 -0500)
commit824474ba38e27ccacc9d2dd066f780e9b3c2ad78
tree1bdd604e990ffe4a324805d13cab1a268632d576
parent66c28d6df2d8292098839d365b82a1e30b567211
drm/amd/display: Retry link training again

[Why]
Some receivers seem to fail the first link training but are good on
subsequent tries. We want to retry link training again. This fixes
HTC vive pro not lighting up after being disabled.

[How]
Check if the link training passed without fall back if this is not
the case then we retry link training.

Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link.c
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
drivers/gpu/drm/amd/display/dc/inc/dc_link_dp.h