]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: bcm2835: Add support for wake-up interrupts
authorFlorian Fainelli <f.fainelli@gmail.com>
Sun, 31 May 2020 00:11:01 +0000 (17:11 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 3 Jun 2020 12:16:38 +0000 (14:16 +0200)
commit7dec92a3d19567feab8fcd92feaf986e482cb0de
tree73a403a50e1df32becbb6d5f6e408cd4772369e2
parent8ee4477888e53839ead8258bb57378646408235f
pinctrl: bcm2835: Add support for wake-up interrupts

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>
drivers/pinctrl/bcm/pinctrl-bcm2835.c