From 9145742d019163776816ffb3a24bf2629fda524e Mon Sep 17 00:00:00 2001 From: jsg Date: Thu, 19 Sep 2024 04:17:11 +0000 Subject: [PATCH] drm/amd/display: Fix FEC_READY write on DP LT From Ilya Bakoulin 7853c146f8b45107bea25dcc1870c4dc3a042540 in linux-6.6.y/6.6.52 a8baec4623aedf36d50767627f6eae5ebf07c6fb in mainline linux --- .../amd/display/dc/link/protocols/link_dp_phy.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/sys/dev/pci/drm/amd/display/dc/link/protocols/link_dp_phy.c b/sys/dev/pci/drm/amd/display/dc/link/protocols/link_dp_phy.c index b16e09c81fd..ac8d399934a 100644 --- a/sys/dev/pci/drm/amd/display/dc/link/protocols/link_dp_phy.c +++ b/sys/dev/pci/drm/amd/display/dc/link/protocols/link_dp_phy.c @@ -147,16 +147,14 @@ enum dc_status dp_set_fec_ready(struct dc_link *link, const struct link_resource return DC_NOT_SUPPORTED; if (ready && dp_should_enable_fec(link)) { - if (link->fec_state == dc_link_fec_not_ready) { - fec_config = 1; + fec_config = 1; - status = core_link_write_dpcd(link, DP_FEC_CONFIGURATION, - &fec_config, sizeof(fec_config)); + status = core_link_write_dpcd(link, DP_FEC_CONFIGURATION, + &fec_config, sizeof(fec_config)); - if (status == DC_OK) { - link_enc->funcs->fec_set_ready(link_enc, true); - link->fec_state = dc_link_fec_ready; - } + if (status == DC_OK) { + link_enc->funcs->fec_set_ready(link_enc, true); + link->fec_state = dc_link_fec_ready; } } else { if (link->fec_state == dc_link_fec_ready) { -- 2.20.1