irqchip: renesas-irqc: Add wake-up support
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 1 Apr 2015 12:00:06 +0000 (14:00 +0200)
committerJason Cooper <jason@lakedaemon.net>
Thu, 2 Apr 2015 23:14:52 +0000 (23:14 +0000)
commit6f46aedb9c85873b67f6186a8b0f9d7a769b6b2c
tree376bc96b0c0ceaaa6c12ef676105612dbf6a3e0b
parent5593ce64d875d169a237e3818a4251948c901ce7
irqchip: renesas-irqc: Add wake-up support

The IRQC module clock is managed through Runtime PM and PM Domains.
If wake-up is enabled, this clock must not be disabled during system
suspend.

Hence implement irq_chip.irq_set_wake(), which increments/decrements the
clock's enable_count when needed.

This fixes wake-up by gpio-keys on r8a73a4/ape6evm.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Link: https://lkml.kernel.org/r/1427889606-18671-1-git-send-email-geert+renesas@glider.be
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
drivers/irqchip/irq-renesas-irqc.c