diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-12-07 18:00:20 -0500 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-12-07 18:02:08 -0500 |
commit | 1a1c69762a14f50dd574a9cbabbfa1b1542f580e (patch) | |
tree | 117fc29dc9f936f0125e08206c9a60a4e5ffbad7 /drivers/gpu/drm/i915/intel_dp.c | |
parent | 0be732841fb925b6f1242211ea211c022b6ac26c (diff) | |
parent | 1b39d6f37622f1da70aa2cfd38bfff9a52c13e05 (diff) |
Merge branch 'drm-intel-fixes' into drm-intel-next
Conflicts:
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/intel_dp.c
Diffstat (limited to 'drivers/gpu/drm/i915/intel_dp.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_dp.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index 2c9601f2f208..63101230b78d 100644 --- a/drivers/gpu/drm/i915/intel_dp.c +++ b/drivers/gpu/drm/i915/intel_dp.c | |||
@@ -1376,6 +1376,9 @@ intel_dp_link_down(struct intel_dp *intel_dp) | |||
1376 | struct drm_i915_private *dev_priv = dev->dev_private; | 1376 | struct drm_i915_private *dev_priv = dev->dev_private; |
1377 | uint32_t DP = intel_dp->DP; | 1377 | uint32_t DP = intel_dp->DP; |
1378 | 1378 | ||
1379 | if ((I915_READ(intel_dp->output_reg) & DP_PORT_EN) == 0) | ||
1380 | return; | ||
1381 | |||
1379 | DRM_DEBUG_KMS("\n"); | 1382 | DRM_DEBUG_KMS("\n"); |
1380 | 1383 | ||
1381 | if (is_edp(intel_dp)) { | 1384 | if (is_edp(intel_dp)) { |
@@ -1399,9 +1402,9 @@ intel_dp_link_down(struct intel_dp *intel_dp) | |||
1399 | if (is_edp(intel_dp)) | 1402 | if (is_edp(intel_dp)) |
1400 | DP |= DP_LINK_TRAIN_OFF; | 1403 | DP |= DP_LINK_TRAIN_OFF; |
1401 | 1404 | ||
1402 | if (!HAS_PCH_CPT(dev) && (DP & DP_PIPEB_SELECT)) { | 1405 | if (!HAS_PCH_CPT(dev) && |
1406 | I915_READ(intel_dp->output_reg) & DP_PIPEB_SELECT) { | ||
1403 | struct intel_crtc *intel_crtc = to_intel_crtc(intel_dp->base.base.crtc); | 1407 | struct intel_crtc *intel_crtc = to_intel_crtc(intel_dp->base.base.crtc); |
1404 | |||
1405 | /* Hardware workaround: leaving our transcoder select | 1408 | /* Hardware workaround: leaving our transcoder select |
1406 | * set to transcoder B while it's off will prevent the | 1409 | * set to transcoder B while it's off will prevent the |
1407 | * corresponding HDMI output on transcoder A. | 1410 | * corresponding HDMI output on transcoder A. |