]> git.ipfire.org Git - thirdparty/u-boot.git/commit
serial: serial_stm32: Enable overrun
authorPatrice Chotard <patrice.chotard@st.com>
Fri, 20 Apr 2018 06:59:06 +0000 (08:59 +0200)
committerTom Rini <trini@konsulko.com>
Sat, 28 Apr 2018 22:32:24 +0000 (18:32 -0400)
commit7b3b74d321279b8aaee448d136fa9d20f8fd0739
treec116d84239f5615e201aa0902889451216ea9441
parentab9e12f651d9211aa0d3c9b9e579c38bd8704054
serial: serial_stm32: Enable overrun

Enable uart overrun feature which allows to benefits of uart
FIFO usage.

Previously overrun management was disabled, this has to effect
to bypassed the uart FIFO usage even if FIFO was enabled.
In particular configuration, for example when video console is
enabled, copy/pasting a long command line in console results in
corruption. This is due to the fact that a lot of time is consumed
in flushing the cache during frame buffer update, so uart chars are
not read fast enough.

By using uart FIFO and managing overrun, long command line can by
copy/paste in console without being corrupted.

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
drivers/serial/serial_stm32.c
drivers/serial/serial_stm32.h