Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 345172
b: refs/heads/master
c: 8361663
h: refs/heads/master
v: v3
  • Loading branch information
Paulo Zanoni authored and Daniel Vetter committed Oct 26, 2012
1 parent 930c70a commit b1ff335
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 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: fc316cbe4692fc0da19dfc9a87db270964d3d056
refs/heads/master: 8361663420435bd915cb5beb20df8da29e06c1dd
23 changes: 10 additions & 13 deletions trunk/drivers/gpu/drm/i915/intel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -3283,12 +3283,8 @@ static void haswell_crtc_enable(struct drm_crtc *crtc)

is_pch_port = haswell_crtc_driving_pch(crtc);

if (is_pch_port) {
if (is_pch_port)
ironlake_fdi_pll_enable(intel_crtc);
} else {
assert_fdi_tx_disabled(dev_priv, pipe);
assert_fdi_rx_disabled(dev_priv, pipe);
}

for_each_encoder_on_crtc(dev, crtc, encoder)
if (encoder->pre_enable)
Expand Down Expand Up @@ -3430,10 +3426,13 @@ static void haswell_crtc_disable(struct drm_crtc *crtc)
struct intel_encoder *encoder;
int pipe = intel_crtc->pipe;
int plane = intel_crtc->plane;
bool is_pch_port;

if (!intel_crtc->active)
return;

is_pch_port = haswell_crtc_driving_pch(crtc);

for_each_encoder_on_crtc(dev, crtc, encoder)
encoder->disable(encoder);

Expand All @@ -3460,14 +3459,12 @@ static void haswell_crtc_disable(struct drm_crtc *crtc)
if (encoder->post_disable)
encoder->post_disable(encoder);

ironlake_fdi_disable(crtc);

intel_disable_transcoder(dev_priv, pipe);

/* disable PCH DPLL */
intel_disable_pch_pll(intel_crtc);

ironlake_fdi_pll_disable(intel_crtc);
if (is_pch_port) {
ironlake_fdi_disable(crtc);
intel_disable_transcoder(dev_priv, pipe);
intel_disable_pch_pll(intel_crtc);
ironlake_fdi_pll_disable(intel_crtc);
}

intel_crtc->active = false;
intel_update_watermarks(dev);
Expand Down

0 comments on commit b1ff335

Please sign in to comment.