]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/gpio/gpio-rcar.c
gpio: rcar: Prevent module clock disable when wake-up is enabled
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 18 Mar 2015 18:41:09 +0000 (19:41 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 26 Mar 2015 09:25:32 +0000 (10:25 +0100)
commitab82fa7da4dce5c728730d7aa0e11a2cbc9266da
tree9dbd5bda183455a012a4dba19a507cc5c3c14767
parent3dc1e6852115b3163e7dacc76bbcb78ccff29421
gpio: rcar: Prevent module clock disable when wake-up is enabled

When the GPIO module is needed for wake-up, it's module clock must not
be disabled. Hence implement irq_chip.irq_set_wake(), which
increments/decrements the clock's enable_count when needed, and forwards
the wake-up state to the upstream interrupt controller.

This fixes wake-up from s2ram using gpio-keys when using a PM Domain to
manage the module clock.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-rcar.c