[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v1 3/3] xilinx_uartlite: Accept input after rx FIFO
From: |
Peter Crosthwaite |
Subject: |
[Qemu-devel] [PATCH v1 3/3] xilinx_uartlite: Accept input after rx FIFO pop |
Date: |
Wed, 5 Dec 2012 16:53:44 +1000 |
The device return false from the can receive function when the FIFO is
full. This mean the device should check for buffered input whenever a byte is
popped from the FIFO.
Reported-by: Jason Wu <address@hidden>
Signed-off-by: Peter Crosthwaite <address@hidden>
---
hw/xilinx_uartlite.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/hw/xilinx_uartlite.c b/hw/xilinx_uartlite.c
index f890f23..02c5850 100644
--- a/hw/xilinx_uartlite.c
+++ b/hw/xilinx_uartlite.c
@@ -97,6 +97,7 @@ uart_read(void *opaque, hwaddr addr, unsigned int size)
s->rx_fifo_len--;
uart_update_status(s);
uart_update_irq(s);
+ qemu_chr_accept_input(s->chr);
break;
default:
--
1.7.0.4