Skip to content

Commit d13e2a6

Browse files
ideaktursulin
authored andcommitted
drm/i915/dp: Reset intel_dp->link_trained before retraining the link
Regularly retraining a link during an atomic commit happens with the given pipe/link already disabled and hence intel_dp->link_trained being false. Ensure this also for retraining a DP SST link via direct calls to the link training functions (vs. an actual commit as for DP MST). So far nothing depended on this, however the next patch will depend on link_trained==false for changing the LTTPR mode to non-transparent. Cc: <[email protected]> # v5.15+ Cc: Ville Syrjälä <[email protected]> Reviewed-by: Ankit Nautiyal <[email protected]> Signed-off-by: Imre Deak <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] (cherry picked from commit a4d5ce6) Signed-off-by: Tvrtko Ursulin <[email protected]>
1 parent c58c391 commit d13e2a6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/gpu/drm/i915/display/intel_dp.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5314,6 +5314,8 @@ static int intel_dp_retrain_link(struct intel_encoder *encoder,
53145314
const struct intel_crtc_state *crtc_state =
53155315
to_intel_crtc_state(crtc->base.state);
53165316

5317+
intel_dp->link_trained = false;
5318+
53175319
intel_dp_check_frl_training(intel_dp);
53185320
intel_dp_pcon_dsc_configure(intel_dp, crtc_state);
53195321
intel_dp_start_link_train(NULL, intel_dp, crtc_state);

0 commit comments

Comments
 (0)