drm/amd/display: Refine aux transaction before retrieve caps
authorLewis Huang <Lewis.Huang@amd.com>
Mon, 8 Aug 2022 05:20:16 +0000 (13:20 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 29 Aug 2022 21:45:20 +0000 (17:45 -0400)
commit6ebdaf20fc4dd98e7573dc2a926c81afc8ac7870
tree1fd55c9605440dc933a953bf7166822bec169979
parent9af611f29034dd6c9329de06dc98232a5b89b939
drm/amd/display: Refine aux transaction before retrieve caps

[Why]
LTTPR caps will read fail if aux channel is not active.

[How]
1.Perform 600 read upto 10 retry with 1ms delay in between.
2.If fail, return false and trigger another retry detection.
3.If pass, read LTTPR caps in retrieve link caps.

Reviewed-by: Jimmy Kizito <Jimmy.Kizito@amd.com>
Acked-by: Brian Chang <Brian.Chang@amd.com>
Signed-off-by: Lewis Huang <Lewis.Huang@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