diff options
author | Kevin Hilman <khilman@linaro.org> | 2013-05-31 17:44:54 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-06-18 03:41:14 -0400 |
commit | 55098ff79f22bbc35f80cb13d24fda3423159c9d (patch) | |
tree | d12f15d788500b590b95b9a341bccdc7ee084360 /drivers/mfd/twl4030-irq.c | |
parent | b4d0fe9c906deb00ad0b1690817f96aff21aee29 (diff) |
mfd: twl4030: Allow IRQ wake enable to succeed on subchip IRQs
The genirq IRQ wake method will default to failure if the irq_chip
does not provide a set_wake method. However, for TWL4030 sub-chip
IRQs, we want the wake enable to succeed even though we don't provide
a set_wake method. This allows sub-chip IRQs to still be flagged as
wakeup capable, and allow them to wakeup from suspend (or abort
suspend if they fire during suspend.)
To fix, use the IRQCHIP_SKIP_SET_WAKE flag in the irq_chip.
Signed-off-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/twl4030-irq.c')
-rw-r--r-- | drivers/mfd/twl4030-irq.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mfd/twl4030-irq.c b/drivers/mfd/twl4030-irq.c index a5f9888aa19c..3fa7df21c5e3 100644 --- a/drivers/mfd/twl4030-irq.c +++ b/drivers/mfd/twl4030-irq.c | |||
@@ -573,6 +573,7 @@ static struct irq_chip twl4030_sih_irq_chip = { | |||
573 | .irq_set_type = twl4030_sih_set_type, | 573 | .irq_set_type = twl4030_sih_set_type, |
574 | .irq_bus_lock = twl4030_sih_bus_lock, | 574 | .irq_bus_lock = twl4030_sih_bus_lock, |
575 | .irq_bus_sync_unlock = twl4030_sih_bus_sync_unlock, | 575 | .irq_bus_sync_unlock = twl4030_sih_bus_sync_unlock, |
576 | .flags = IRQCHIP_SKIP_SET_WAKE, | ||
576 | }; | 577 | }; |
577 | 578 | ||
578 | /*----------------------------------------------------------------------*/ | 579 | /*----------------------------------------------------------------------*/ |