From patchwork Wed Dec 5 06:53:44 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [v1,3/3] xilinx_uartlite: Accept input after rx FIFO pop Date: Tue, 04 Dec 2012 20:53:44 -0000 From: Peter Crosthwaite X-Patchwork-Id: 203793 Message-Id: <6d7d82a2f960a77a0ccc2cd8049c60ae64b80195.1354690179.git.peter.crosthwaite@xilinx.com> To: qemu-devel@nongnu.org Cc: edgar.iglesias@gmail.com, Peter Crosthwaite , peter.maydell@linaro.org 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 Signed-off-by: Peter Crosthwaite --- 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: