diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2015-04-08 17:26:21 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2015-04-08 17:26:21 -0400 |
commit | 462b69b1e43ceccab68a47d65b1e46520cd0fdc0 (patch) | |
tree | 3c961fcb5889c5ab14ab36d8ef7421fc96c95959 /kernel/irq/manage.c | |
parent | d8bf368d0631d4bc2612d8bf2e4e8e74e620d0cc (diff) | |
parent | f22e6e847115abc3a0e2ad7bb18d243d42275af1 (diff) |
Merge branch 'linus' into irq/core to get the GIC updates which
conflict with pending GIC changes.
Conflicts:
drivers/usb/isp1760/isp1760-core.c
Diffstat (limited to 'kernel/irq/manage.c')
-rw-r--r-- | kernel/irq/manage.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index 03329c2287eb..c0a1100d911f 100644 --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c | |||
@@ -1506,8 +1506,13 @@ int request_threaded_irq(unsigned int irq, irq_handler_t handler, | |||
1506 | * otherwise we'll have trouble later trying to figure out | 1506 | * otherwise we'll have trouble later trying to figure out |
1507 | * which interrupt is which (messes up the interrupt freeing | 1507 | * which interrupt is which (messes up the interrupt freeing |
1508 | * logic etc). | 1508 | * logic etc). |
1509 | * | ||
1510 | * Also IRQF_COND_SUSPEND only makes sense for shared interrupts and | ||
1511 | * it cannot be set along with IRQF_NO_SUSPEND. | ||
1509 | */ | 1512 | */ |
1510 | if ((irqflags & IRQF_SHARED) && !dev_id) | 1513 | if (((irqflags & IRQF_SHARED) && !dev_id) || |
1514 | (!(irqflags & IRQF_SHARED) && (irqflags & IRQF_COND_SUSPEND)) || | ||
1515 | ((irqflags & IRQF_NO_SUSPEND) && (irqflags & IRQF_COND_SUSPEND))) | ||
1511 | return -EINVAL; | 1516 | return -EINVAL; |
1512 | 1517 | ||
1513 | desc = irq_to_desc(irq); | 1518 | desc = irq_to_desc(irq); |