aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorImre Deak <imre.deak@intel.com>2014-06-25 15:01:50 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-07-10 16:05:12 -0400
commit97b040aa391651793e4d463408c137b81517cc90 (patch)
tree7dfffa72856dbe1b37eb70bbdbd1de9f2b7c0886
parent4fe9467d216af71fb456d626ee26e17178d619f9 (diff)
drm/i915: ddi: move pch cleanup before encoder->post_disable
This is needed by an upcoming patch that moves the PCH/CRT PLL disabling into the post_disable hook, after which we want to keep the modeset sequence at its current state. At this point this won't have an effect since the PCH/CRT post_disable hook is atm a NOP. Signed-off-by: Imre Deak <imre.deak@intel.com> Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r--drivers/gpu/drm/i915/intel_display.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 8ce89c8aa92b..6332d9dda00f 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -4246,16 +4246,16 @@ static void haswell_crtc_disable(struct drm_crtc *crtc)
4246 4246
4247 intel_ddi_disable_pipe_clock(intel_crtc); 4247 intel_ddi_disable_pipe_clock(intel_crtc);
4248 4248
4249 for_each_encoder_on_crtc(dev, crtc, encoder)
4250 if (encoder->post_disable)
4251 encoder->post_disable(encoder);
4252
4253 if (intel_crtc->config.has_pch_encoder) { 4249 if (intel_crtc->config.has_pch_encoder) {
4254 lpt_disable_pch_transcoder(dev_priv); 4250 lpt_disable_pch_transcoder(dev_priv);
4255 intel_set_pch_fifo_underrun_reporting(dev, TRANSCODER_A, true); 4251 intel_set_pch_fifo_underrun_reporting(dev, TRANSCODER_A, true);
4256 intel_ddi_fdi_disable(crtc); 4252 intel_ddi_fdi_disable(crtc);
4257 } 4253 }
4258 4254
4255 for_each_encoder_on_crtc(dev, crtc, encoder)
4256 if (encoder->post_disable)
4257 encoder->post_disable(encoder);
4258
4259 intel_crtc->active = false; 4259 intel_crtc->active = false;
4260 intel_update_watermarks(crtc); 4260 intel_update_watermarks(crtc);
4261 4261