irqchip/stm32: Add suspend support
commitd9e2b19b02744068b1cc16ca7d5249a62e789601
authorLudovic Barre <ludovic.barre@st.com>
Thu, 26 Apr 2018 16:18:27 +0000 (26 18:18 +0200)
committerMarc Zyngier <marc.zyngier@arm.com>
Thu, 24 May 2018 11:38:20 +0000 (24 12:38 +0100)
tree2b9b363d6174e550c665a1f3173418aa0897eff1
parentbe6230f0c2bd5d2fe7530d04d015d454f235f21d
irqchip/stm32: Add suspend support

This patch adds suspend feature.
-Use default irq_set_wake function to store wakeup request.
-Suspend function set wake_active into imr of each bank
 and save rising/falling trigger registers.
-Resume function restore the mask_cache interrupt into
 imr of each bank and restore rising/falling trigger registers.

Signed-off-by: Ludovic Barre <ludovic.barre@st.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/irqchip/irq-stm32-exti.c