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

mfd: Flag WM831x /IRQ as a wake source

The WM831x can generate wake events, some unconditionally, so flag
the primary IRQ as a wake source in order to help the CPU treat the
/IRQ signal appropriately.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>

authored by

Mark Brown and committed by
Samuel Ortiz
180e4f5f c538ddbe

+11
+11
drivers/mfd/wm831x-irq.c
··· 517 517 return 0; 518 518 } 519 519 520 + /* Try to flag /IRQ as a wake source; there are a number of 521 + * unconditional wake sources in the PMIC so this isn't 522 + * conditional but we don't actually care *too* much if it 523 + * fails. 524 + */ 525 + ret = enable_irq_wake(irq); 526 + if (ret != 0) { 527 + dev_warn(wm831x->dev, "Can't enable IRQ as wake source: %d\n", 528 + ret); 529 + } 530 + 520 531 wm831x->irq = irq; 521 532 wm831x->irq_base = pdata->irq_base; 522 533