Searched hist:f264c6f6aece81a9f8fbdf912b20bd3feb476a7a (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/tty/serial/ |
H A D | stm32-usart.c | diff f264c6f6aece81a9f8fbdf912b20bd3feb476a7a Thu Mar 04 10:22:58 CST 2021 Erwan Le Ray <erwan.leray@foss.st.com> 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>
|