]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/amd/display: FEC configuration for dpia links
authorMeenakshikumar Somasundaram <meenakshikumar.somasundaram@amd.com>
Thu, 16 Sep 2021 19:34:40 +0000 (15:34 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Oct 2021 18:26:17 +0000 (14:26 -0400)
[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 <wayne.lin@amd.com>
Reviewed-by: Jimmy Kizito <Jimmy.Kizito@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Meenakshikumar Somasundaram <meenakshikumar.somasundaram@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn31/dcn31_dio_link_encoder.c

index 8f8eee4751446c30f200fb85d38c0ff037d35c21..19b085d84b1fd001e93793f908ab9d164da051ca 100644 (file)
@@ -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();