Commit 3cec4176 authored by John Barberiz's avatar John Barberiz Committed by Alex Deucher

drm/amd/display: Fix use of uninitialized union

[Why]
An uninitialized variable would randomly initialize to a large
value. This caused enough delay to fail DP Compliance Test 400.2.1.

[How]
Initialize the variable.
Signed-off-by: default avatarJohn Barberiz <John.Barberiz@amd.com>
Reviewed-by: default avatarWenjing Liu <Wenjing.Liu@amd.com>
Acked-by: default avatarLeo Li <sunpeng.li@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent bf75572a
...@@ -47,7 +47,7 @@ static void wait_for_training_aux_rd_interval( ...@@ -47,7 +47,7 @@ static void wait_for_training_aux_rd_interval(
struct dc_link *link, struct dc_link *link,
uint32_t default_wait_in_micro_secs) uint32_t default_wait_in_micro_secs)
{ {
union training_aux_rd_interval training_rd_interval; union training_aux_rd_interval training_rd_interval = {0};
/* overwrite the delay if rev > 1.1*/ /* overwrite the delay if rev > 1.1*/
if (link->dpcd_caps.dpcd_rev.raw >= DPCD_REV_12) { if (link->dpcd_caps.dpcd_rev.raw >= DPCD_REV_12) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment