diff mbox series

ARM: renesas: Enable serial RX buffer on Renesas R-Car

Message ID 20250413131053.68941-1-marek.vasut+renesas@mailbox.org
State New
Delegated to: Marek Vasut
Headers show
Series ARM: renesas: Enable serial RX buffer on Renesas R-Car | expand

Commit Message

Marek Vasut April 13, 2025, 1:10 p.m. UTC
Enable CONFIG_SERIAL_RX_BUFFER on all Renesas R-Car devices which
use the SCIF serial port. This allows receiving large strings at
bulk even if the RX FIFO is small and would otherwise overflow.

The usual trigger for the problem addressed here is a paste of a
very long command into U-Boot command line, somewhere between 400
and 500 characters long. The trailing end of the string is usually
not received and the command line input stops responding due to RX
overflow errors. The CONFIG_SERIAL_RX_BUFFER allows efficient read
of data from the RX FIFO, which prevents the overflow, and allows
safe reception of long pasted strings.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
---
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Cc: Tom Rini <trini@konsulko.com>
Cc: u-boot@lists.denx.de
---
 configs/renesas_rcar.config | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/configs/renesas_rcar.config b/configs/renesas_rcar.config
index d0a12f266aa..db5846e992c 100644
--- a/configs/renesas_rcar.config
+++ b/configs/renesas_rcar.config
@@ -24,5 +24,6 @@  CONFIG_MTD=y
 CONFIG_OF_CONTROL=y
 CONFIG_RCAR_GPIO=y
 CONFIG_SCIF_CONSOLE=y
+CONFIG_SERIAL_RX_BUFFER=y
 CONFIG_SPI=y
 CONFIG_VERSION_VARIABLE=y