]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
serial: stm32: clean wakeup handling in serial_suspend
authorErwan Le Ray <erwan.leray@foss.st.com>
Fri, 19 Mar 2021 18:42:50 +0000 (19:42 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Mar 2021 09:28:18 +0000 (10:28 +0100)
commitc0f3332cb5f2e370c041594fa1ff59db4ee68925
tree391e39db9cd62d42ef0a12396cf7ea7a63cd7e98
parent1631eeeaf084acdc29ca0370db8ea436692f71f5
serial: stm32: clean wakeup handling in serial_suspend

Remove useless call to stm32_usart_serial_en_wakeup() routine in suspend
callback. When called with "false" argument, this routine is clearing UESM
and WUFIE bits if usart is not wakeup source. Those bits are already
cleared in set_termios(), and then in serial_resume() callback when usart
is wakeup source.

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