drm/i915/dp: Convert a udelay(17000) to a sleep during link-off
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 11 Sep 2010 20:37:48 +0000 (21:37 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 11 Sep 2010 20:37:48 +0000 (21:37 +0100)
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/intel_dp.c

index 103a60b3cad4775d5db338ca682e552534953d48..208a4ec3e432bfa87fa69d21fecf6b4a989d44e4 100644 (file)
@@ -1366,14 +1366,13 @@ intel_dp_link_down(struct intel_dp *intel_dp)
        if (HAS_PCH_CPT(dev) && !IS_eDP(intel_dp)) {
                DP &= ~DP_LINK_TRAIN_MASK_CPT;
                I915_WRITE(intel_dp->output_reg, DP | DP_LINK_TRAIN_PAT_IDLE_CPT);
-               POSTING_READ(intel_dp->output_reg);
        } else {
                DP &= ~DP_LINK_TRAIN_MASK;
                I915_WRITE(intel_dp->output_reg, DP | DP_LINK_TRAIN_PAT_IDLE);
-               POSTING_READ(intel_dp->output_reg);
        }
+       POSTING_READ(intel_dp->output_reg);
 
-       udelay(17000);
+       msleep(17);
 
        if (IS_eDP(intel_dp))
                DP |= DP_LINK_TRAIN_OFF;