aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_dp.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-09-11 21:37:48 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2010-09-11 21:37:48 +0100
commitfe255d0028903f1132a3c1214edc91cf95b7cd98 (patch)
treedbfaadc5fe27f24a0505d1bd3fe44e993c5c1300 /drivers/gpu/drm/i915/intel_dp.c
parent5eddb70ba2b8cdbbdd563f5cb04e26fdc9b017f7 (diff)
downloadkernel_samsung_aries-fe255d0028903f1132a3c1214edc91cf95b7cd98.zip
kernel_samsung_aries-fe255d0028903f1132a3c1214edc91cf95b7cd98.tar.gz
kernel_samsung_aries-fe255d0028903f1132a3c1214edc91cf95b7cd98.tar.bz2
drm/i915/dp: Convert a udelay(17000) to a sleep during link-off
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_dp.c')
-rw-r--r--drivers/gpu/drm/i915/intel_dp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
index 103a60b..208a4ec 100644
--- a/drivers/gpu/drm/i915/intel_dp.c
+++ b/drivers/gpu/drm/i915/intel_dp.c
@@ -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;