All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] hw/char/cmsdk-apb-uart.c: Accept more input after character read
@ 2018-04-19 23:50 Patrick Oppenlander
  2018-05-03 12:54 ` Peter Maydell
  0 siblings, 1 reply; 2+ messages in thread
From: Patrick Oppenlander @ 2018-04-19 23:50 UTC (permalink / raw)
  To: qemu-devel

The character frontend needs to be notified that the uart receive buffer
is empty and ready to handle another character.

Previously, the uart only worked correctly when receiving one character
at a time.

Signed-off-by: Patrick Oppenlander <patrick.oppenlander@gmail.com>
---
 hw/char/cmsdk-apb-uart.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/char/cmsdk-apb-uart.c b/hw/char/cmsdk-apb-uart.c
index 9c0929d8a2..ddfbb25c24 100644
--- a/hw/char/cmsdk-apb-uart.c
+++ b/hw/char/cmsdk-apb-uart.c
@@ -157,6 +157,7 @@ static uint64_t uart_read(void *opaque, hwaddr
offset, unsigned size)
         r = s->rxbuf;
         s->state &= ~R_STATE_RXFULL_MASK;
         cmsdk_apb_uart_update(s);
+        qemu_chr_fe_accept_input(&s->chr);
         break;
     case A_STATE:
         r = s->state;
-- 
2.17.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [PATCH] hw/char/cmsdk-apb-uart.c: Accept more input after character read
  2018-04-19 23:50 [Qemu-devel] [PATCH] hw/char/cmsdk-apb-uart.c: Accept more input after character read Patrick Oppenlander
@ 2018-05-03 12:54 ` Peter Maydell
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Maydell @ 2018-05-03 12:54 UTC (permalink / raw)
  To: Patrick Oppenlander; +Cc: QEMU Developers

On 20 April 2018 at 00:50, Patrick Oppenlander
<patrick.oppenlander@gmail.com> wrote:
> The character frontend needs to be notified that the uart receive buffer
> is empty and ready to handle another character.
>
> Previously, the uart only worked correctly when receiving one character
> at a time.
>
> Signed-off-by: Patrick Oppenlander <patrick.oppenlander@gmail.com>
> ---
>  hw/char/cmsdk-apb-uart.c | 1 +
>  1 file changed, 1 insertion(+)

Oops. Thanks for the patch, applied to target-arm.next.

-- PMM

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-05-03 12:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-19 23:50 [Qemu-devel] [PATCH] hw/char/cmsdk-apb-uart.c: Accept more input after character read Patrick Oppenlander
2018-05-03 12:54 ` Peter Maydell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.