link_bw_kbps *= 8;   /* 8 bits per byte*/
        link_bw_kbps *= link_setting->lane_count;
 
-       if (link->dpcd_caps.fec_cap.bits.FEC_CAPABLE) {
+       if (dc_link_is_fec_supported(link)) {
                /* Account for FEC overhead.
                 * We have to do it based on caps,
                 * and not based on FEC being set ready,
        dp_overwrite_extended_receiver_cap(link);
 }
 
+bool dc_link_is_fec_supported(const struct dc_link *link)
+{
+       return (dc_is_dp_signal(link->connector_signal) &&
+                       link->link_enc->features.fec_supported &&
+                       link->dpcd_caps.fec_cap.bits.FEC_CAPABLE &&
+                       !link->dc->debug.disable_fec &&
+                       !IS_FPGA_MAXIMUS_DC(link->ctx->dce_environment));
+}
+
 
        struct link_encoder *link_enc = link->link_enc;
        uint8_t fec_config = 0;
 
-       if (link->dc->debug.disable_fec ||
-                       IS_FPGA_MAXIMUS_DC(link->ctx->dce_environment))
+       if (!dc_link_is_fec_supported(link))
                return;
 
        if (link_enc->funcs->fec_set_ready &&
 {
        struct link_encoder *link_enc = link->link_enc;
 
-       if (link->dc->debug.disable_fec ||
-                       IS_FPGA_MAXIMUS_DC(link->ctx->dce_environment))
+       if (!dc_link_is_fec_supported(link))
                return;
 
        if (link_enc->funcs->fec_set_enable &&
 
 
 uint32_t dc_bandwidth_in_kbps_from_timing(
        const struct dc_crtc_timing *timing);
+
+bool dc_link_is_fec_supported(const struct dc_link *link);
+
 #endif /* DC_LINK_H_ */
 
                .max_hdmi_pixel_clock = 600000,
                .hdmi_ycbcr420_supported = true,
                .dp_ycbcr420_supported = true,
+               .fec_supported = true,
                .flags.bits.IS_HBR2_CAPABLE = true,
                .flags.bits.IS_HBR3_CAPABLE = true,
                .flags.bits.IS_TPS3_CAPABLE = true,
 
                .max_hdmi_pixel_clock = 600000,
                .hdmi_ycbcr420_supported = true,
                .dp_ycbcr420_supported = true,
+               .fec_supported = true,
                .flags.bits.IS_HBR2_CAPABLE = true,
                .flags.bits.IS_HBR3_CAPABLE = true,
                .flags.bits.IS_TPS3_CAPABLE = true,
 
        unsigned int max_hdmi_pixel_clock;
        bool hdmi_ycbcr420_supported;
        bool dp_ycbcr420_supported;
+       bool fec_supported;
 };
 
 union dpcd_psr_configuration {