From: Ville Syrjälä <ville.syrjala@linux.intel.com>
Date: Fri, 4 Dec 2015 20:22:14 +0000 (+0200)
Subject: drm/i915: Disable LPT-H VGA dotclock during crtc disable
X-Git-Tag: v4.5-rc1~74^2~18^2~67
X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=503a74e98c3636a74444e6567dbdea44b855e8cb;p=users%2Fjedix%2Flinux-maple.git

drm/i915: Disable LPT-H VGA dotclock during crtc disable

Currently we leave the LPT-H VGA dotclock running after turning
the pipe/fdi/port/etc. Properly disable the VGA dotclock as
specified in the modeset sequence.

v2: Fix commit message typo (Paulo)

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1449260534-14551-1-git-send-email-ville.syrjala@linux.intel.com
---

diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 20a1d94b1369f..c549df79b4b5b 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -5176,6 +5176,7 @@ static void haswell_crtc_disable(struct drm_crtc *crtc)
 
 	if (intel_crtc->config->has_pch_encoder) {
 		lpt_disable_pch_transcoder(dev_priv);
+		lpt_disable_iclkip(dev_priv);
 		intel_ddi_fdi_disable(crtc);
 
 		intel_set_pch_fifo_underrun_reporting(dev_priv, TRANSCODER_A,