pinctrl: sunxi: Mask non-wakeup IRQs on suspend
commit8587b21c599e2874233cc5bbea7d0b18f4b62963
authorSamuel Holland <samuel@sholland.org>
Fri, 17 Jan 2020 21:33:40 +0000 (17 15:33 -0600)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 21 Feb 2020 14:16:08 +0000 (21 15:16 +0100)
tree896f782f9ee9e3ea78d172e040e48d8869a2f4ec
parenta59c99d9eaf90e6426d9bfe3b0a5e5b78010c72e
pinctrl: sunxi: Mask non-wakeup IRQs on suspend

The pin controller hardware does not distinguish IRQs intended for
wakeup from other IRQs, so we must mask non-wakeup IRQs in software to
prevent inadvertent wakeups. This is accomplished at the irqchip level
via the IRQCHIP_MASK_ON_SUSPEND flag.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Link: https://lore.kernel.org/r/20200117213340.47714-2-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