]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915/dp: Simplify forcing a link retraining
authorImre Deak <imre.deak@intel.com>
Wed, 11 Mar 2026 15:31:52 +0000 (17:31 +0200)
committerImre Deak <imre.deak@intel.com>
Fri, 13 Mar 2026 12:58:08 +0000 (14:58 +0200)
commit95acbb074694ead2a2f09888e673a485ed00ea22
treef4c8d0178ed6c3f6a9889f43da2097f5d1fcba3c
parente41e992cb6534cac3a21a02d005c714f7f923653
drm/i915/dp: Simplify forcing a link retraining

Since both the DP SST and MST HPD IRQ handlers call
intel_dp_handle_link_service_irq() with LINK_STATUS_CHANGED set in
irq_mask if intel_dp->link.force_retrain is set, checking for the former
flag is sufficient to determine if the link status needs to be checked
(which includes retraining the link if this is forced); remove checking
for the latter flag.

Since LINK_STATUS_CHANGED is currently set unconditionally for DP SST,
extend the related comment to note that it must be set if
intel_dp->link.force_retrain is set (in case setting LINK_STATUS_CHANGED
becomes conditional on DPCD_REV).

Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://patch.msgid.link/20260311153152.133744-2-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_dp.c