aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-02-10 07:16:14 -0500
committerThomas Gleixner <tglx@linutronix.de>2011-02-19 06:58:22 -0500
commitd4d5e08960844a062da8387ee5f16ca7a33200d0 (patch)
tree1154fd87e25595ae9391740a1d9a3d60f69770de /include
parent2bff17ad2107c66fc8ca96501a7128dd7fa7a390 (diff)
genirq: Add IRQCHIP_SET_TYPE_MASKED flag
irq_chips, which require to mask the chip before changing the trigger type should set this flag. So the core takes care of it and the requirement for looking into desc->status in the chip goes away. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Linus Walleij <linus.walleij@stericsson.com> Cc: Lars-Peter Clausen <lars@metafoo.de>
Diffstat (limited to 'include')
-rw-r--r--include/linux/irq.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/irq.h b/include/linux/irq.h
index aefb30bbcf0e..ef6b66dc9d03 100644
--- a/include/linux/irq.h
+++ b/include/linux/irq.h
@@ -308,6 +308,15 @@ struct irq_chip {
308#endif 308#endif
309}; 309};
310 310
311/*
312 * irq_chip specific flags
313 *
314 * IRQCHIP_SET_TYPE_MASKED: Mask before calling chip.irq_set_type()
315 */
316enum {
317 IRQCHIP_SET_TYPE_MASKED = (1 << 0),
318};
319
311/* This include will go away once we isolated irq_desc usage to core code */ 320/* This include will go away once we isolated irq_desc usage to core code */
312#include <linux/irqdesc.h> 321#include <linux/irqdesc.h>
313 322