Erwan Le Ray f264c6f6ae serial: stm32: fix incorrect characters on console
Incorrect characters are observed on console during boot. This issue occurs
when init/main.c is modifying termios settings to open /dev/console on the
rootfs.

This patch adds a waiting loop in set_termios to wait for TX shift register
empty (and TX FIFO if any) before stopping serial port.

Fixes: 48a6092fb41f ("serial: stm32-usart: Add STM32 USART Driver")
Signed-off-by: Erwan Le Ray <erwan.leray@foss.st.com>
Link: https://lore.kernel.org/r/20210304162308.8984-4-erwan.leray@foss.st.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-03-10 09:34:10 +01:00
..
2020-10-28 13:39:14 +01:00
2020-08-31 07:19:25 +02:00
2020-01-29 10:13:27 -08:00
2021-03-10 09:34:06 +01:00
2020-07-20 09:39:11 +02:00
2020-10-05 13:32:30 +02:00
2020-08-18 13:51:18 +02:00
2020-01-29 10:13:27 -08:00
2019-12-18 15:04:57 +01:00
2020-04-16 16:13:34 +02:00
2021-01-07 18:02:13 -08:00
2020-01-29 10:13:27 -08:00