[RFC 2/2] warn on shared edge-triggered irq

From: Stephen Hemminger
Date: Mon Apr 24 2006 - 17:22:55 EST



Put out a warning if setting up shared irq that is edge triggered.
If this happens, interrupts can be lost, but perhaps it is laptop
with unused device, so let it go till later.


--- irq.orig/kernel/irq/manage.c
+++ irq/kernel/irq/manage.c
@@ -234,6 +234,9 @@ int setup_irq(unsigned int irq, struct i
desc->handler->startup(irq);
else
desc->handler->enable(irq);
+ } else if (!(desc->status & IRQ_LEVEL)) {
+ printk(KERN_CRIT "Irq %d (%s) is shared but not level triggered\n",
+ irq, desc->handler->typename);
}
spin_unlock_irqrestore(&desc->lock,flags);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/