Received: from eggs.gnu.org ([208.118.235.92]:60664) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tg8kY-0003oB-7J for qemu-devel@nongnu.org; Wed, 05 Dec 2012 01:46:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tg8kW-0001FB-Vb for qemu-devel@nongnu.org; Wed, 05 Dec 2012 01:46:30 -0500 Received: from mail-pb0-f45.google.com ([209.85.160.45]:38589) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tg8kW-0001F6-Q3 for qemu-devel@nongnu.org; Wed, 05 Dec 2012 01:46:28 -0500 Received: by mail-pb0-f45.google.com with SMTP id mc8so3208794pbc.4 for ; Tue, 04 Dec 2012 22:46:27 -0800 (PST) Sender: Peter Crosthwaite From: Peter Crosthwaite Date: Wed, 5 Dec 2012 16:46:11 +1000 Message-Id: <1354689971-21453-1-git-send-email-peter.crosthwaite@xilinx.com> Subject: [Qemu-devel] [PATCH] cadance_uart: Accept input after rx FIFO pop List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: huanyu@xilinx.com, peter.maydell@linaro.org, Peter Crosthwaite , john.williams@xilinx.com 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/cadence_uart.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/cadence_uart.c b/hw/cadence_uart.c index 686e617..a6196a2 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; -- 1.7.0.4