From: Meenakshikumar Somasundaram Date: Thu, 16 Sep 2021 19:34:40 +0000 (-0400) Subject: drm/amd/display: FEC configuration for dpia links X-Git-Tag: v5.19~1937^2^2~17 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=7fb52632ca7a8c45119064754a446b4be8441c12;p=mirror_ubuntu-kernels.git drm/amd/display: FEC configuration for dpia links [Why] To fix the check condition for fec enable for dpia links. [How] dc_link_should_enable_fec() to be used to check whether fec should be enabled. Cc: Wayne Lin Reviewed-by: Jimmy Kizito Acked-by: Rodrigo Siqueira Tested-by: Daniel Wheeler Signed-off-by: Meenakshikumar Somasundaram Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/dcn31/dcn31_dio_link_encoder.c b/drivers/gpu/drm/amd/display/dc/dcn31/dcn31_dio_link_encoder.c index 8f8eee475144..19b085d84b1f 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn31/dcn31_dio_link_encoder.c +++ b/drivers/gpu/drm/amd/display/dc/dcn31/dcn31_dio_link_encoder.c @@ -431,7 +431,7 @@ void dcn31_link_encoder_enable_dp_output( if (link) { dpia_control.dpia_id = link->ddc_hw_inst; - dpia_control.fec_rdy = link->fec_state == dc_link_fec_ready ? 1 : 0; + dpia_control.fec_rdy = dc_link_should_enable_fec(link); } else { DC_LOG_ERROR("%s: Failed to execute DPIA enable DMUB command.\n", __func__); BREAK_TO_DEBUGGER();