drm/i915/dp: Reset intel_dp->link_trained before retraining the link
authorjsg <jsg@openbsd.org>
Mon, 5 Aug 2024 02:52:34 +0000 (02:52 +0000)
committerjsg <jsg@openbsd.org>
Mon, 5 Aug 2024 02:52:34 +0000 (02:52 +0000)
From Imre Deak
a90e900f71da23a354e9d17f1dc0c654d0ae9ceb in linux-6.6.y/6.6.44
d13e2a6e95e6b87f571c837c71a3d05691def9bb in mainline linux

sys/dev/pci/drm/i915/display/intel_dp.c

index f80bd9f..5386d3a 100644 (file)
@@ -4374,6 +4374,8 @@ int intel_dp_retrain_link(struct intel_encoder *encoder,
                    !intel_dp_mst_is_master_trans(crtc_state))
                        continue;
 
+               intel_dp->link_trained = false;
+
                intel_dp_check_frl_training(intel_dp);
                intel_dp_pcon_dsc_configure(intel_dp, crtc_state);
                intel_dp_start_link_train(intel_dp, crtc_state);