Commit e815aff5 authored by José Roberto de Souza's avatar José Roberto de Souza
Browse files

drm/i915/display: Check the old state to find port sync slave



If the CRTC is going from enabled to disabled and it is a port sync
slave, it needs to check to the old state to be disabled before the
port sync master.

Cc: Manasi Navare <manasi.d.navare@intel.com>
Cc: Matt Roper <matthew.d.roper@intel.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: default avatarJosé Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191202222513.337777-1-jose.souza@intel.com
parent a3265d85
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -14497,8 +14497,8 @@ static void intel_commit_modeset_disables(struct intel_atomic_state *state)
		 * slave CRTCs are disabled first and then master CRTC since
		 * Slave vblanks are masked till Master Vblanks.
		 */
		if (is_trans_port_sync_mode(new_crtc_state)) {
			if (is_trans_port_sync_master(new_crtc_state))
		if (is_trans_port_sync_mode(old_crtc_state)) {
			if (is_trans_port_sync_master(old_crtc_state))
				intel_trans_port_sync_modeset_disables(state,
								       crtc,
								       old_crtc_state,