]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
8250-serial: Make transmitter being always ready to send data
authorCyrill Gorcunov <gorcunov@gmail.com>
Mon, 10 Jan 2011 13:22:27 +0000 (16:22 +0300)
committerCyrill Gorcunov <gorcunov@gmail.com>
Mon, 10 Jan 2011 13:22:27 +0000 (16:22 +0300)
Otherwise it causes kernel to do additional timeout
waiting for THR being empty.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
tools/kvm/8250-serial.c

index c612cc6a77cf93f8e4f795ff2b454f027095e7b7..2b8e65dcd060d235f6a7f9a7369cc2e1bff7745b 100644 (file)
@@ -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)