summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2012-04-25 05:05:24 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2012-05-09 18:02:51 +0200
commit5a2f1b5fae593dbdf4f3656ee5a5d111df3e9acb (patch)
tree24b3ad458363a8aa3ac582d99bdb1a3cec0b3501 /drivers
parentmfd: Convert twl6040-core to devm_regmap_init_i2c() (diff)
downloadlinux-5a2f1b5fae593dbdf4f3656ee5a5d111df3e9acb.tar.xz
linux-5a2f1b5fae593dbdf4f3656ee5a5d111df3e9acb.zip
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mfd/twl4030-irq.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mfd/twl4030-irq.c b/drivers/mfd/twl4030-irq.c
index 5d656e814358..ad733d76207a 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: