qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] usb: queue can have async packets too
@ 2012-02-28 14:36 Gerd Hoffmann
  2012-03-02 13:14 ` Erik Rull
  0 siblings, 1 reply; 5+ messages in thread
From: Gerd Hoffmann @ 2012-02-28 14:36 UTC (permalink / raw)
  To: qemu-devel; +Cc: erik.rull, Gerd Hoffmann

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 hw/usb.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/hw/usb.c b/hw/usb.c
index 57fc5e3..fc41d62 100644
--- a/hw/usb.c
+++ b/hw/usb.c
@@ -356,6 +356,9 @@ void usb_packet_complete(USBDevice *dev, USBPacket *p)
 
     while (!QTAILQ_EMPTY(&ep->queue)) {
         p = QTAILQ_FIRST(&ep->queue);
+        if (p->state == USB_PACKET_ASYNC) {
+            break;
+        }
         assert(p->state == USB_PACKET_QUEUED);
         ret = usb_process_one(p);
         if (ret == USB_RET_ASYNC) {
-- 
1.7.1

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

end of thread, other threads:[~2012-03-06 15:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-28 14:36 [Qemu-devel] [PATCH] usb: queue can have async packets too Gerd Hoffmann
2012-03-02 13:14 ` Erik Rull
2012-03-02 14:15   ` Gerd Hoffmann
2012-03-05 10:22     ` Erik Rull
2012-03-06 15:40       ` Erik Rull

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).