提交 5a2f1b5f 编写于 作者: N NeilBrown 提交者: Samuel Ortiz

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: NNeilBrown <neilb@suse.de>
Acked-by: NKevin Hilman <khilman@ti.com>
Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
上级 bbf6adc1
...@@ -757,6 +757,7 @@ int twl4030_init_irq(struct device *dev, int irq_num) ...@@ -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); dev_err(dev, "could not claim irq%d: %d\n", irq_num, status);
goto fail_rqirq; goto fail_rqirq;
} }
enable_irq_wake(irq_num);
return irq_base; return irq_base;
fail_rqirq: fail_rqirq:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册