]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/i915/dp: Call intel_dp_sync_state() always for DDI DP encoders
authorImre Deak <imre.deak@intel.com>
Tue, 20 Feb 2024 21:18:38 +0000 (23:18 +0200)
committerImre Deak <imre.deak@intel.com>
Tue, 27 Feb 2024 15:35:05 +0000 (17:35 +0200)
A follow-up change will need to resume DP tunnels during system resume,
so call intel_dp_sync_state() always for DDI encoders, so this function
can resume the tunnels for all DP connectors.

Reviewed-by: Uma Shankar <uma.shankar@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240220211841.448846-19-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_ddi.c

index ed7301808604de96b95bbd79bb2b6f398ede68e7..c587a8efeafcf5e561429d925c2893208908e03f 100644 (file)
@@ -4151,7 +4151,7 @@ static void intel_ddi_sync_state(struct intel_encoder *encoder,
                intel_tc_port_sanitize_mode(enc_to_dig_port(encoder),
                                            crtc_state);
 
-       if (crtc_state && intel_crtc_has_dp_encoder(crtc_state))
+       if (intel_encoder_is_dp(encoder))
                intel_dp_sync_state(encoder, crtc_state);
 }