Skip to contentSkip to conversation

cadance_uart: Accept input after rx FIFO pop

PATCH New Peter Crosthwaite 1 participant 1 message Dec 5, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cadance_uart: Accept input after rx FIFO pop

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.

---
 hw/cadence_uart.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
hw/cadence_uart.c +1 -0
index 686e617..a6196a2 100644
@@ -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;
Signature · 1 line
1.7.0.4