]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
pinctrl: bcm2835: Add support for wake-up interrupts
authorFlorian Fainelli <f.fainelli@gmail.com>
Tue, 25 Jan 2022 19:42:20 +0000 (11:42 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 29 Jan 2022 09:25:10 +0000 (10:25 +0100)
commit0d006bb08d760e5c8a124a55b85020e22cc2ee27
tree4ddd18b4ec3156f993bfcf88489c5f3ca87c1eb7
parent08fd6274380af2365e6f2aadf3264ff817400a80
pinctrl: bcm2835: Add support for wake-up interrupts

commit 920fecc1aa4591da27ef9dcb338fc5da86b404d7 upstream

Leverage the IRQCHIP_MASK_ON_SUSPEND flag in order to avoid having to
specifically treat the GPIO interrupts during suspend and resume, and
simply implement an irq_set_wake() callback that is responsible for
enabling the parent wake-up interrupt as a wake-up interrupt.

To avoid allocating unnecessary resources for other chips, the wake-up
interrupts are only initialized if we have a brcm,bcm7211-gpio
compatibility string.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20200531001101.24945-5-f.fainelli@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pinctrl/bcm/pinctrl-bcm2835.c