Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 345253
b: refs/heads/master
c: 8a52fd9
h: refs/heads/master
i:
  345251: 2be268f
v: v3
  • Loading branch information
Paulo Zanoni authored and Daniel Vetter committed Nov 11, 2012
1 parent fd454f8 commit 1fb32ad
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 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: 32ae46bf010f2fcc8cf29c48621590350a4bc5c1
refs/heads/master: 8a52fd9f240a6e2b73361fb825145f9951fc552d
18 changes: 8 additions & 10 deletions trunk/drivers/gpu/drm/i915/intel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -1766,22 +1766,20 @@ static void ironlake_disable_pch_transcoder(struct drm_i915_private *dev_priv,
}

static void lpt_disable_pch_transcoder(struct drm_i915_private *dev_priv,
enum pipe pipe)
enum transcoder cpu_transcoder)
{
int reg;
u32 val;

/* FDI relies on the transcoder */
assert_fdi_tx_disabled(dev_priv, pipe);
assert_fdi_rx_disabled(dev_priv, pipe);
assert_fdi_tx_disabled(dev_priv, cpu_transcoder);
assert_fdi_rx_disabled(dev_priv, TRANSCODER_A);

reg = TRANSCONF(pipe);
val = I915_READ(reg);
val = I915_READ(_TRANSACONF);
val &= ~TRANS_ENABLE;
I915_WRITE(reg, val);
I915_WRITE(_TRANSACONF, val);
/* wait for PCH transcoder off, transcoder state */
if (wait_for((I915_READ(reg) & TRANS_STATE_ENABLE) == 0, 50))
DRM_ERROR("failed to disable transcoder %d\n", pipe);
if (wait_for((I915_READ(_TRANSACONF) & TRANS_STATE_ENABLE) == 0, 50))
DRM_ERROR("Failed to disable PCH transcoder\n");
}

/**
Expand Down Expand Up @@ -3630,7 +3628,7 @@ static void haswell_crtc_disable(struct drm_crtc *crtc)

if (is_pch_port) {
ironlake_fdi_disable(crtc);
lpt_disable_pch_transcoder(dev_priv, pipe);
lpt_disable_pch_transcoder(dev_priv, cpu_transcoder);
intel_disable_pch_pll(intel_crtc);
ironlake_fdi_pll_disable(intel_crtc);
}
Expand Down

0 comments on commit 1fb32ad

Please sign in to comment.