From: Peter Crosthwaite Date: Tue, 12 Feb 2013 01:29:31 +0000 (+1000) Subject: cadance_uart: Accept input after rx FIFO pop X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=9893c80d81587ac25d8ea4a82651371b54e7df35;p=qemu.git cadance_uart: Accept input after rx FIFO pop The device returns false from the can receive function when the FIFO is full. This means the device should check for buffered input whenever a byte is popped from the FIFO. Reported-by: Jason Wu Signed-off-by: Peter Crosthwaite Message-id: 1360632571-25638-1-git-send-email-peter.crosthwaite@xilinx.com Signed-off-by: Anthony Liguori --- diff --git a/hw/cadence_uart.c b/hw/cadence_uart.c index cf2f53c81c..5766d38f13 100644 --- a/hw/cadence_uart.c +++ b/hw/cadence_uart.c @@ -343,6 +343,7 @@ static void uart_read_rx_fifo(UartState *s, uint32_t *c) if (!s->rx_count) { s->r[R_SR] |= UART_SR_INTR_REMPTY; } + qemu_chr_accept_input(s->chr); } else { *c = 0; s->r[R_SR] |= UART_SR_INTR_REMPTY;