]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915/dp: Simplify intel_dp_needs_8b10b_fec()
authorImre Deak <imre.deak@intel.com>
Mon, 20 Oct 2025 15:44:38 +0000 (18:44 +0300)
committerImre Deak <imre.deak@intel.com>
Wed, 22 Oct 2025 17:36:14 +0000 (20:36 +0300)
commit3bd3763a749edee52eb1e0a633650794749fa82c
tree9244cc4d5aba6a7c19a172e6353dc454b79620b9
parent9a28e446514557fbaa24ba3d8fb7eb052a4f9fb0
drm/i915/dp: Simplify intel_dp_needs_8b10b_fec()

The intel_crtc_state::fec_enable check in intel_dp_needs_8b10b_fec() is
redundant drop it: originally it ensured that the FEC enabled state for
a CRTC other than the CRTC intel_dp_needs_8b10b_fec() called for is
preserved, even if DSC is not enabled for the latter CRTC. The way FEC
gets enabled for all the CRTCs on an 8b10b MST link is changed by

commit 7c027070e98d ("drm/i915/dp_mst: Track DSC enabled status on the
MST link") and
commit 470b84af457e ("drm/i915/dp_mst: Recompute all MST link CRTCs if
DSC gets enabled on the link")

depending on intel_dsc_enabled_on_link() in intel_dp_needs_8b10b_fec()
instead of the above fec_enable check. Drop the check.

Suggested-by: Jouni Högander <jouni.hogander@intel.com>
Reviewed-by: Jouni Högander <jouni.hogander@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://lore.kernel.org/r/20251020154438.416761-1-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_dp.c