irqchip: renesas-intc-irqpin: Add suspend-to-RAM wake up support
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 20 Aug 2014 14:49:32 +0000 (16:49 +0200)
committerJason Cooper <jason@lakedaemon.net>
Thu, 21 Aug 2014 12:07:44 +0000 (12:07 +0000)
commit1c36d42c4ffee9e38e122ed822dd0a545a3a86da
tree4c481c7d0eda3b9c1ffe7bd9c5a51f3c7da4e7d1
parent7d1311b93e58ed55f3a31cc8f94c4b8fe988a2b9
irqchip: renesas-intc-irqpin: Add suspend-to-RAM wake up support

Set the ->irq_enable() and ->irq_disable() methods to NULL to enable
lazy disable of interrupts, and set IRQCHIP_MASK_ON_SUSPEND to tell the
core that only IRQs marked as wake-ups need to stay enabled during
suspend-to-RAM.

This makes wake-up by gpio-keys from suspend-to-RAM work on
r8a7740/Armadillo.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lkml.kernel.org/r/1408546172-22484-1-git-send-email-geert+renesas@glider.be
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
drivers/irqchip/irq-renesas-intc-irqpin.c