drm/amd/display: Fix uninitialized variable.
authorJimmy Kizito <Jimmy.Kizito@amd.com>
Mon, 19 Jul 2021 19:45:10 +0000 (15:45 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 5 Jul 2022 20:16:59 +0000 (16:16 -0400)
commit3b779044c81754f094ee88afe431d839e3a74aa0
treecce1fccef9668f4ce68088d30468c26408d35eb8
parent09de5cd2c170b19e04e37439a712da52a0535015
drm/amd/display: Fix uninitialized variable.

[Why]
Uninitialized variable causes diag compilation build failure.

[How]
- Ensure that variable in question is always initialized before being
used.
- The variable in question is the USB4 DP training pattern. In case an
unsupported training pattern has been requested, update status
accordingly and abort current link training attempt.

Reviewed-by: Meenakshikumar Somasundaram <Meenakshikumar.Somasundaram@amd.com>
Acked-by: Alan Liu <HaoPing.Liu@amd.com>
Signed-off-by: Jimmy Kizito <Jimmy.Kizito@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_dpia.c