diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2014-08-20 10:49:32 -0400 |
---|---|---|
committer | Jason Cooper <jason@lakedaemon.net> | 2014-08-21 08:07:44 -0400 |
commit | 1c36d42c4ffee9e38e122ed822dd0a545a3a86da (patch) | |
tree | 4c481c7d0eda3b9c1ffe7bd9c5a51f3c7da4e7d1 /drivers/irqchip | |
parent | 7d1311b93e58ed55f3a31cc8f94c4b8fe988a2b9 (diff) |
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>
Diffstat (limited to 'drivers/irqchip')
-rw-r--r-- | drivers/irqchip/irq-renesas-intc-irqpin.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/irqchip/irq-renesas-intc-irqpin.c b/drivers/irqchip/irq-renesas-intc-irqpin.c index 3ee78f02e5d7..a9efceb0c4a0 100644 --- a/drivers/irqchip/irq-renesas-intc-irqpin.c +++ b/drivers/irqchip/irq-renesas-intc-irqpin.c | |||
@@ -454,10 +454,8 @@ static int intc_irqpin_probe(struct platform_device *pdev) | |||
454 | irq_chip->name = name; | 454 | irq_chip->name = name; |
455 | irq_chip->irq_mask = disable_fn; | 455 | irq_chip->irq_mask = disable_fn; |
456 | irq_chip->irq_unmask = enable_fn; | 456 | irq_chip->irq_unmask = enable_fn; |
457 | irq_chip->irq_enable = enable_fn; | ||
458 | irq_chip->irq_disable = disable_fn; | ||
459 | irq_chip->irq_set_type = intc_irqpin_irq_set_type; | 457 | irq_chip->irq_set_type = intc_irqpin_irq_set_type; |
460 | irq_chip->flags = IRQCHIP_SKIP_SET_WAKE; | 458 | irq_chip->flags = IRQCHIP_SKIP_SET_WAKE | IRQCHIP_MASK_ON_SUSPEND; |
461 | 459 | ||
462 | p->irq_domain = irq_domain_add_simple(pdev->dev.of_node, | 460 | p->irq_domain = irq_domain_add_simple(pdev->dev.of_node, |
463 | p->number_of_irqs, | 461 | p->number_of_irqs, |