Commit 29428c85 authored by Ville Syrjälä's avatar Ville Syrjälä
Browse files

drm/i915/dsi: Do DSC/scaler disable earlier on icl+



Do the scaler disable in the spot where bspec has specfied it
for TGL+. And also move the DSC disable to match what
intel_ddi.c does.

Reviewed-by: default avatarJani Nikula <jani.nikula@intel.com>
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230608203057.23759-10-ville.syrjala@linux.intel.com
parent a57aa1e3
Loading
Loading
Loading
Loading
+3 −4
Original line number Original line Diff line number Diff line
@@ -1422,6 +1422,9 @@ static void gen11_dsi_post_disable(struct intel_atomic_state *state,
	/* step2h,i,j: deconfig trancoder */
	/* step2h,i,j: deconfig trancoder */
	gen11_dsi_deconfigure_trancoder(encoder);
	gen11_dsi_deconfigure_trancoder(encoder);


	intel_dsc_disable(old_crtc_state);
	skl_scaler_disable(old_crtc_state);

	/* step3: disable port */
	/* step3: disable port */
	gen11_dsi_disable_port(encoder);
	gen11_dsi_disable_port(encoder);


@@ -1429,10 +1432,6 @@ static void gen11_dsi_post_disable(struct intel_atomic_state *state,


	/* step4: disable IO power */
	/* step4: disable IO power */
	gen11_dsi_disable_io_power(encoder);
	gen11_dsi_disable_io_power(encoder);

	intel_dsc_disable(old_crtc_state);

	skl_scaler_disable(old_crtc_state);
}
}


static enum drm_mode_status gen11_dsi_mode_valid(struct drm_connector *connector,
static enum drm_mode_status gen11_dsi_mode_valid(struct drm_connector *connector,