diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2011-07-12 15:42:45 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2011-07-25 09:42:09 +1000 |
commit | 9717f3d953f294bf416258f6b1f2d9512babd337 (patch) | |
tree | 6914328ea285b1c63e56bef70baf1fb684e7d863 /drivers/gpu | |
parent | e19b20bbd291f13581975bd0bdc1d92ce2385cc4 (diff) | |
download | op-kernel-dev-9717f3d953f294bf416258f6b1f2d9512babd337.zip op-kernel-dev-9717f3d953f294bf416258f6b1f2d9512babd337.tar.gz |
drm/nouveau: detect disabled device in irq handler and return IRQ_NONE
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_irq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_irq.c b/drivers/gpu/drm/nouveau/nouveau_irq.c index 2ba7265..868c7fd 100644 --- a/drivers/gpu/drm/nouveau/nouveau_irq.c +++ b/drivers/gpu/drm/nouveau/nouveau_irq.c @@ -79,7 +79,7 @@ nouveau_irq_handler(DRM_IRQ_ARGS) int i; stat = nv_rd32(dev, NV03_PMC_INTR_0); - if (!stat) + if (stat == 0 || stat == ~0) return IRQ_NONE; spin_lock_irqsave(&dev_priv->context_switch_lock, flags); |