drm/amd/display: Link training retry fix for abort case
authorMeenakshikumar Somasundaram <meenakshikumar.somasundaram@amd.com>
Mon, 30 Aug 2021 18:01:10 +0000 (14:01 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 14 Sep 2021 19:57:10 +0000 (15:57 -0400)
commitdb7b568e6d995d8395bb904a8df0b629271c5a45
treeaa22f5972652fe919b466ad121f92ed0c696d86e
parent0d9a947b5cbb80780ca4202ea82568e07f0fc720
drm/amd/display: Link training retry fix for abort case

[Why]
If link training is aborted, it shall be retried if sink is present.

[How]
Check hpd status to find out whether sink is present or not. If sink is
present, then link training shall be tried again with same settings.
Otherwise, link training shall be aborted.

Reviewed-by: Jimmy Kizito <Jimmy.Kizito@amd.com>
Acked-by: Mikita Lipski <mikita.lipski@amd.com>
Signed-off-by: Meenakshikumar Somasundaram <meenakshikumar.somasundaram@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c