serial: stm32: enable / disable wake irqs for mcrtl_gpio wakeup sources
authorErwan Le Ray <erwan.leray@foss.st.com>
Thu, 3 Feb 2022 17:16:44 +0000 (18:16 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Feb 2022 10:07:16 +0000 (11:07 +0100)
commit7547d9ab03720e9ef3e300b12c57f380310a6e30
treedbc69b553d1efeaead885066c3aac8f0ef70ca15
parent9978c2f14f20a1aaea3840c16220ef64e4ad1872
serial: stm32: enable / disable wake irqs for mcrtl_gpio wakeup sources

Enable mctrl_gpio wake_irq if device_may_wakeup when usart is suspended,
and disable mctrl_gpios wake_irq if device_may_wakeup when usart is
resumed.

Signed-off-by: Erwan Le Ray <erwan.leray@foss.st.com>
Link: https://lore.kernel.org/r/20220203171644.12231-3-erwan.leray@foss.st.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/stm32-usart.c