drm/nouveau: detect disabled device in irq handler and return IRQ_NONE
authorBen Skeggs <bskeggs@redhat.com>
Tue, 12 Jul 2011 05:42:45 +0000 (15:42 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Sun, 24 Jul 2011 23:42:09 +0000 (09:42 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_irq.c

index 2ba7265..868c7fd 100644 (file)
@@ -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);