]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: pca953x: Add wake-up support
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 13 Feb 2019 13:15:03 +0000 (14:15 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 20 Feb 2019 09:30:45 +0000 (10:30 +0100)
commitdffb384c86072e0597ad6bb4f926cca9367e6210
treeff2eed9121535a4f0c07f6b76f0f11aa86993b6a
parent8d36275c6872bf4b3c4e03c45d572c2056e37c06
gpio: pca953x: Add wake-up support

Implement the irq_set_wake() method in the (optional) irq_chip of the
GPIO expander, and propagate wake-up settings to the upstream interrupt
controller.  This allows GPIOs connected to a PCA953X GPIO expander to
serve as wake-up sources.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-pca953x.c