]> git.sur5r.net Git - u-boot/commit
serial: serial-uclass: Add generic serial RX buffer support
authorStefan Roese <sr@denx.de>
Wed, 16 Aug 2017 15:37:16 +0000 (17:37 +0200)
committerBin Meng <bmeng.cn@gmail.com>
Thu, 24 Aug 2017 03:00:47 +0000 (11:00 +0800)
commit3ca7a06afb7cbc867b7861a8b9aada74e5bbb559
tree725eb62e426a11719fdfaaaa080fe462ddeaea5e
parent7fded0ce0ff68551ceb631f98d60db162e49f80c
serial: serial-uclass: Add generic serial RX buffer support

Pasting longer lines into the U-Boot console prompt sometimes leads to
characters missing. One problem here is the small 16-byte FIFO of the
legacy NS16550 UART, e.g. on x86 platforms.

This patch now introduces a Kconfig option to enable RX buffer support
for all DM based serial drivers. With this option enabled, I was
able paste really long lines into the U-Boot console, without any
characters missing.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Bin Meng <bmeng.cn@gmail.com>
Cc: Tom Rini <trini@konsulko.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
drivers/serial/Kconfig
drivers/serial/serial-uclass.c
include/serial.h