pinctrl: sunxi: Forward calls to irq_set_irq_wake
authorSamuel Holland <samuel@sholland.org>
Fri, 17 Jan 2020 21:33:39 +0000 (15:33 -0600)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 21 Feb 2020 14:14:24 +0000 (15:14 +0100)
commita59c99d9eaf90e6426d9bfe3b0a5e5b78010c72e
tree0f013d54900496759a4919558968fe27681740ea
parent86ecb7d6853c77711c14cb6600179196f179ee2d
pinctrl: sunxi: Forward calls to irq_set_irq_wake

The pinctrl irqchip may be connected to an irqchip that implements the
.irq_set_wake callback, such as the R_INTC on A31 and newer sunxi SoCs.
In order for GPIOs to be able to trigger wakeup, the IRQ from the
pinctrl to the upper irqchip must also be enabled for wakeup. Since the
kernel's IRQ core already manages the "wake_depth" of each IRQ, no
additional accounting is needed in the pinctrl driver.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Link: https://lore.kernel.org/r/20200117213340.47714-1-samuel@sholland.org
Acked-by: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/sunxi/pinctrl-sunxi.c