serial: stm32: add no_console_suspend support
authorErwan Le Ray <erwan.leray@st.com>
Tue, 19 May 2020 09:41:04 +0000 (11:41 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 May 2020 13:53:36 +0000 (15:53 +0200)
commit55484fcc5061c3f41b2f8f37b4a5754d3682f1a5
tree05de2349131b5c0febb868fc38fa1d863683f793
parentb14109f302d01899a8d7aad0d9a2097faa5fb486
serial: stm32: add no_console_suspend support

In order to display console messages in low power mode, console pins
must be kept active after suspend call.

Initial patch "serial: stm32: add support for no_console_suspend" was part
of "STM32 usart power improvement" series, but as dependancy to
console_suspend pinctl state has been removed to fit with Rob comment [1],
this patch has no more dependancy with any other patch of this series.

[1] https://lkml.org/lkml/2019/7/9/451

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