Skip to content

Commit

Permalink
drm/i915: Only call udelay() when waiting for clocks to stabilise
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
  • Loading branch information
Chris Wilson committed Sep 10, 2010
1 parent d5e0d2f commit 8c4223b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/gpu/drm/i915/intel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -1989,8 +1989,8 @@ static void ironlake_crtc_enable(struct drm_crtc *crtc)
if ((temp & DPLL_VCO_ENABLE) == 0) {
I915_WRITE(pch_dpll_reg, temp | DPLL_VCO_ENABLE);
I915_READ(pch_dpll_reg);
udelay(200);
}
udelay(200);

if (HAS_PCH_CPT(dev)) {
/* Be sure PCH DPLL SEL is set */
Expand Down Expand Up @@ -2136,8 +2136,6 @@ static void ironlake_crtc_disable(struct drm_crtc *crtc)
} else
DRM_DEBUG_KMS("crtc %d is disabled\n", pipe);

udelay(100);

/* Disable PF */
I915_WRITE(pipe ? PFB_CTL_1 : PFA_CTL_1, 0);
I915_WRITE(pipe ? PFB_WIN_SZ : PFA_WIN_SZ, 0);
Expand Down

0 comments on commit 8c4223b

Please sign in to comment.