diff options
| author | Imre Deak <imre.deak@intel.com> | 2025-10-15 19:19:30 +0300 |
|---|---|---|
| committer | Imre Deak <imre.deak@intel.com> | 2025-10-17 21:48:34 +0300 |
| commit | cb6c8f1f6f46ac2cbfb42ce8eb8b18257aeaa91a (patch) | |
| tree | 5e6cdaa813cfe6f894a05e3bc3c37b15dcee64d3 /drivers/gpu/drm/i915/display/intel_dp_mst.c | |
| parent | 69df31263bcabc527a5b526fb8972cb080a179b3 (diff) | |
drm/i915/dp: Export helper to determine if FEC on non-UHBR links is required
Export the helper function to determine if FEC is required on a non-UHBR
(8b10b) SST or MST link. A follow up change will take this into use for
MST as well.
While at it determine the output type from the CRTC state, which allows
dropping the intel_dp argument. Also make the function return the
required FEC state, instead of setting this in the CRTC state, which
allows only querying this requirement, without changing the state.
Also rename the function to intel_dp_needs_8b10b_fec(), to clarify that
the function determines if FEC is required on an 8b10b link (on 128b132b
links FEC is always enabled by the HW implicitly, so the function will
return false for that case).
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Jouni Högander <jouni.hogander@intel.com>
Link: https://lore.kernel.org/r/20251015161934.262108-4-imre.deak@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_dp_mst.c')
| -rw-r--r-- | drivers/gpu/drm/i915/display/intel_dp_mst.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_dp_mst.c b/drivers/gpu/drm/i915/display/intel_dp_mst.c index 27e952a67c34..d0590b5ffffd 100644 --- a/drivers/gpu/drm/i915/display/intel_dp_mst.c +++ b/drivers/gpu/drm/i915/display/intel_dp_mst.c @@ -296,7 +296,7 @@ int intel_dp_mtp_tu_compute_config(struct intel_dp *intel_dp, /* * NOTE: The following must reset crtc_state->fec_enable for UHBR/DSC * after it was set by intel_dp_dsc_compute_config() -> - * intel_dp_fec_compute_config(). + * intel_dp_needs_8b10b_fec(). */ if (dsc) { if (!intel_dp_supports_fec(intel_dp, connector, crtc_state)) |