]> Git Repo - linux.git/commitdiff
serial: stm32: clean wakeup handling in serial_suspend
authorErwan Le Ray <[email protected]>
Fri, 19 Mar 2021 18:42:50 +0000 (19:42 +0100)
committerGreg Kroah-Hartman <[email protected]>
Tue, 23 Mar 2021 09:28:18 +0000 (10:28 +0100)
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 <[email protected]>
Signed-off-by: Erwan Le Ray <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/tty/serial/stm32-usart.c

index 11656b6b7c0f0090e93a6e55fda09e4ba7d11672..cc054f07bd83f2015a777fbb7380d159f40dddd0 100644 (file)
@@ -1536,8 +1536,6 @@ static int __maybe_unused stm32_usart_serial_suspend(struct device *dev)
 
        if (device_may_wakeup(dev) || device_wakeup_path(dev))
                stm32_usart_serial_en_wakeup(port, true);
-       else
-               stm32_usart_serial_en_wakeup(port, false);
 
        /*
         * When "no_console_suspend" is enabled, keep the pinctrl default state
This page took 0.059613 seconds and 4 git commands to generate.