serial: stm32: rework wakeup management
authorErwan Le Ray <erwan.leray@foss.st.com>
Fri, 19 Mar 2021 18:42:49 +0000 (19:42 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Mar 2021 09:28:18 +0000 (10:28 +0100)
commit1631eeeaf084acdc29ca0370db8ea436692f71f5
tree5d181d32f9cacee4192278bd7d3ecf22824f8423
parent0ae798fd96f8c28850e09d22d3f0d455071ed8eb
serial: stm32: rework wakeup management

Rework wakeup management by activating uart as wakeup source when usart
device OR its tty virtual device parent is wakeup source.

This patch aim to avoid potential misalignment between serial and tty
wakeup flags.

Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
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-2-erwan.leray@foss.st.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/stm32-usart.c