From 93309317d0e2929b48046873cd30465c353c1f79 Mon Sep 17 00:00:00 2001 From: "Peter A. Bigot" Date: Mon, 23 Mar 2020 16:09:21 -0500 Subject: [PATCH] uart: sifive: fix interrupt-driven transmission A txcnt of zero prevents transmission, as transmit requires the number of entries in the transmit fifo to be strictly less than the txcnt value. Set the default to 1. Signed-off-by: Peter A. Bigot --- drivers/serial/Kconfig.sifive | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/serial/Kconfig.sifive b/drivers/serial/Kconfig.sifive index e451b74cb6f..fe6349463d6 100644 --- a/drivers/serial/Kconfig.sifive +++ b/drivers/serial/Kconfig.sifive @@ -36,7 +36,7 @@ config UART_SIFIVE_PORT_0_RXCNT_IRQ config UART_SIFIVE_PORT_0_TXCNT_IRQ int "Port 0 TX Interrupt Threshold Count" - default 0 + default 1 depends on UART_SIFIVE_PORT_0 help Port 0 TX Threshold at which the TX FIFO interrupt triggers.