From 6d620acb6617e21e9b82b93d7ae50aca0b542dd8 Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Mon, 10 Jan 2011 16:22:27 +0300 Subject: [PATCH] 8250-serial: Make transmitter being always ready to send data Otherwise it causes kernel to do additional timeout waiting for THR being empty. Signed-off-by: Cyrill Gorcunov --- 8250-serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/8250-serial.c b/8250-serial.c index c612cc6..2b8e65d 100644 --- a/8250-serial.c +++ b/8250-serial.c @@ -30,7 +30,7 @@ static struct serial8250_device device = { .irq = 4, .iir = UART_IIR_NO_INT, - .lsr = UART_LSR_THRE, + .lsr = UART_LSR_TEMT | UART_LSR_THRE, }; static int read_char(int fd)