From: Geert Uytterhoeven Date: Wed, 18 Mar 2015 18:41:09 +0000 (+0100) Subject: gpio: rcar: Prevent module clock disable when wake-up is enabled X-Git-Tag: omap-for-v4.2/o2_dc~94^2~32 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab82fa7da4dce5c728730d7aa0e11a2cbc9266da;p=pandora-kernel.git 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 Signed-off-by: Linus Walleij --- Reading git-diff-tree failed