From: NeilBrown Date: Wed, 25 Apr 2012 03:05:24 +0000 (+1000) Subject: mfd: enable wakeup on twl4030 IRQ. X-Git-Tag: upstream/snapshot3+hdmi~7345^2~58 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5a2f1b5fae593dbdf4f3656ee5a5d111df3e9acb;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 Acked-by: Kevin Hilman Signed-off-by: Samuel Ortiz --- diff --git a/drivers/mfd/twl4030-irq.c b/drivers/mfd/twl4030-irq.c index 5d656e8..ad733d7 100644 --- a/drivers/mfd/twl4030-irq.c +++ b/drivers/mfd/twl4030-irq.c @@ -757,6 +757,7 @@ int twl4030_init_irq(struct device *dev, int irq_num) dev_err(dev, "could not claim irq%d: %d\n", irq_num, status); goto fail_rqirq; } + enable_irq_wake(irq_num); return irq_base; fail_rqirq: