Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 307317
b: refs/heads/master
c: 55b3975
h: refs/heads/master
i:
  307315: 556a08b
v: v3
  • Loading branch information
Chris Wilson authored and Daniel Vetter committed May 3, 2012
1 parent 22467b8 commit fee287b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 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: 00d98ebd948b75919f542f53c31e9eb83310fbcf
refs/heads/master: 55b39755ea3a767da85e6725a783da90c574a274
11 changes: 4 additions & 7 deletions trunk/drivers/gpu/drm/i915/i915_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -2527,9 +2527,6 @@ static void i915_irq_uninstall(struct drm_device * dev)
drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private;
int pipe;

if (!dev_priv)
return;

dev_priv->vblank_pipe = 0;

if (I915_HAS_HOTPLUG(dev)) {
Expand All @@ -2538,14 +2535,14 @@ static void i915_irq_uninstall(struct drm_device * dev)
}

I915_WRITE16(HWSTAM, 0xffff);
for_each_pipe(pipe)
for_each_pipe(pipe) {
/* Clear enable bits; then clear status bits */
I915_WRITE(PIPESTAT(pipe), 0);
I915_WRITE(PIPESTAT(pipe), I915_READ(PIPESTAT(pipe)));
}
I915_WRITE(IMR, 0xffffffff);
I915_WRITE(IER, 0x0);

for_each_pipe(pipe)
I915_WRITE(PIPESTAT(pipe),
I915_READ(PIPESTAT(pipe)) & 0x8000ffff);
I915_WRITE(IIR, I915_READ(IIR));
}

Expand Down

0 comments on commit fee287b

Please sign in to comment.