Skip to content

Commit

Permalink
cadance_uart: Accept input after rx FIFO pop
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
pete128 authored and Anthony Liguori committed Feb 13, 2013
1 parent 8a8f584 commit 9893c80
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hw/cadence_uart.c
Expand Up @@ -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;
Expand Down

0 comments on commit 9893c80

Please sign in to comment.