Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: enable wakeup on twl4030 IRQ.

Most of the interrupts that come through this line should trigger
wakeups:
power button
RTC alarm
power available
usb plug/unplug

so mark the interrupt as a wakeup interrupt.
This is particularly important for when the interrupt arrives during
the late suspend phase. Without this setting it will be ignored.

Signed-off-by: NeilBrown <neilb@suse.de>
Acked-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>

authored by

NeilBrown and committed by
Samuel Ortiz
5a2f1b5f bbf6adc1

+1
+1
drivers/mfd/twl4030-irq.c
··· 757 757 dev_err(dev, "could not claim irq%d: %d\n", irq_num, status); 758 758 goto fail_rqirq; 759 759 } 760 + enable_irq_wake(irq_num); 760 761 761 762 return irq_base; 762 763 fail_rqirq: