summaryrefslogtreecommitdiffstats
path: root/drivers/serial
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2018-04-12 14:41:43 -0700
committerSascha Hauer <s.hauer@pengutronix.de>2018-04-16 09:58:09 +0200
commit46b940ddf837aa118bd514fa35e7ca6e7a5339a3 (patch)
tree045bcd0e2ade78c4fcc07bdaa9d0b2e361b46cd4 /drivers/serial
parent567050a8c516d88e0047ba30c12d36d02ec89bc1 (diff)
downloadbarebox-46b940ddf837aa118bd514fa35e7ca6e7a5339a3.tar.gz
serial/lpuart: Do not enable UART FIFO
Using FIFO in LPUART results in subtle serial input draining issues which are quite difficult to reproduce and troubleshoot. Since the change offered only moderate performance gain revert the code to operate in no-FIFO mode to avoid FIFO-related problems alltogether. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/serial')
-rw-r--r--drivers/serial/serial_lpuart.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/serial/serial_lpuart.c b/drivers/serial/serial_lpuart.c
index 52fb6d3..8f87f7b 100644
--- a/drivers/serial/serial_lpuart.c
+++ b/drivers/serial/serial_lpuart.c
@@ -170,9 +170,7 @@ static int lpuart_serial_probe(struct device_d *dev)
cdev->linux_console_name = "ttyLP";
- lpuart_setup_with_fifo(lpuart->base,
- clk_get_rate(lpuart->clk),
- 15);
+ lpuart_setup(lpuart->base, clk_get_rate(lpuart->clk));
ret = console_register(cdev);
if (!ret) {