aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_display.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-09-10 17:33:42 -0400
committerChris Wilson <chris@chris-wilson.co.uk>2010-09-10 18:13:51 -0400
commit8c4223bee91b771782f2ec07f2c85d81cdff3ed5 (patch)
tree558dde85f520687cc0cfa4011847daacc4c216e4 /drivers/gpu/drm/i915/intel_display.c
parentd5e0d2f51977fe1f7fd6ee5c1a4476b43bad8f92 (diff)
drm/i915: Only call udelay() when waiting for clocks to stabilise
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_display.c')
-rw-r--r--drivers/gpu/drm/i915/intel_display.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 95c841640508..df410e4827e4 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -1989,8 +1989,8 @@ static void ironlake_crtc_enable(struct drm_crtc *crtc)
1989 if ((temp & DPLL_VCO_ENABLE) == 0) { 1989 if ((temp & DPLL_VCO_ENABLE) == 0) {
1990 I915_WRITE(pch_dpll_reg, temp | DPLL_VCO_ENABLE); 1990 I915_WRITE(pch_dpll_reg, temp | DPLL_VCO_ENABLE);
1991 I915_READ(pch_dpll_reg); 1991 I915_READ(pch_dpll_reg);
1992 udelay(200);
1992 } 1993 }
1993 udelay(200);
1994 1994
1995 if (HAS_PCH_CPT(dev)) { 1995 if (HAS_PCH_CPT(dev)) {
1996 /* Be sure PCH DPLL SEL is set */ 1996 /* Be sure PCH DPLL SEL is set */
@@ -2136,8 +2136,6 @@ static void ironlake_crtc_disable(struct drm_crtc *crtc)
2136 } else 2136 } else
2137 DRM_DEBUG_KMS("crtc %d is disabled\n", pipe); 2137 DRM_DEBUG_KMS("crtc %d is disabled\n", pipe);
2138 2138
2139 udelay(100);
2140
2141 /* Disable PF */ 2139 /* Disable PF */
2142 I915_WRITE(pipe ? PFB_CTL_1 : PFA_CTL_1, 0); 2140 I915_WRITE(pipe ? PFB_CTL_1 : PFA_CTL_1, 0);
2143 I915_WRITE(pipe ? PFB_WIN_SZ : PFA_WIN_SZ, 0); 2141 I915_WRITE(pipe ? PFB_WIN_SZ : PFA_WIN_SZ, 0);