]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: mxc: Fix disabled interrupt wake-up support
authorLoic Poulain <loic.poulain@linaro.org>
Thu, 17 Jun 2021 13:54:13 +0000 (15:54 +0200)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 21 Jun 2021 18:43:52 +0000 (20:43 +0200)
commit5ab07e8c22308ba39c8bb4b3fb6a7d149dc62638
tree76031bc3b8b0175995a07de459862d8a04344f98
parentcfb141982aed688e8079d016d089d19035c043bb
gpio: mxc: Fix disabled interrupt wake-up support

A disabled/masked interrupt marked as wakeup source must be re-enable
and unmasked in order to be able to wake-up the host. That can be done
by flaging the irqchip with IRQCHIP_ENABLE_WAKEUP_ON_SUSPEND.

Note: It 'sometimes' works without that change, but only thanks to the
lazy generic interrupt disabling (keeping interrupt unmasked).

Reported-by: Michal Koziel <michal.koziel@emlogic.no>
Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpio-mxc.c