Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 345132
b: refs/heads/master
c: a836bdf
h: refs/heads/master
v: v3
  • Loading branch information
Paulo Zanoni authored and Daniel Vetter committed Oct 18, 2012
1 parent 95b7d0d commit 6b4b228
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 247d89f62230f3369aeaab85dca34978f79dcb86
refs/heads/master: a836bdf9ae5aa3b100c8cdd04aae5bb9c0340145
11 changes: 10 additions & 1 deletion trunk/drivers/gpu/drm/i915/intel_ddi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1138,14 +1138,23 @@ void intel_ddi_post_disable(struct intel_encoder *intel_encoder)
struct drm_i915_private *dev_priv = encoder->dev->dev_private;
enum port port = intel_ddi_get_encoder_port(intel_encoder);
uint32_t val;
bool wait = false;

val = I915_READ(DDI_BUF_CTL(port));
if (val & DDI_BUF_CTL_ENABLE) {
val &= ~DDI_BUF_CTL_ENABLE;
I915_WRITE(DDI_BUF_CTL(port), val);
intel_wait_ddi_buf_idle(dev_priv, port);
wait = true;
}

val = I915_READ(DP_TP_CTL(port));
val &= ~(DP_TP_CTL_ENABLE | DP_TP_CTL_LINK_TRAIN_MASK);
val |= DP_TP_CTL_LINK_TRAIN_PAT1;
I915_WRITE(DP_TP_CTL(port), val);

if (wait)
intel_wait_ddi_buf_idle(dev_priv, port);

I915_WRITE(PORT_CLK_SEL(port), PORT_CLK_SEL_NONE);
}

Expand Down

0 comments on commit 6b4b228

Please sign in to comment.