]> git.proxmox.com Git - qemu.git/commitdiff
cadance_uart: Accept input after rx FIFO pop
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>
Tue, 12 Feb 2013 01:29:31 +0000 (11:29 +1000)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 13 Feb 2013 17:57:58 +0000 (11:57 -0600)
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 <huanyu@xilinx.com>
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Message-id: 1360632571-25638-1-git-send-email-peter.crosthwaite@xilinx.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/cadence_uart.c

index cf2f53c81c973ee8ace1f3f0b5c177b3f83758c9..5766d38f13ce50e6b4ad6f73c2aae95583ee650a 100644 (file)
@@ -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;