diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2015-04-28 09:31:44 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2015-05-08 13:01:06 +0200 |
commit | df0f1692db9236a469496cc09fc7bd5faf31efad (patch) | |
tree | 274c67bde42f1fc6d0f4e2390f4e840ffdce1e2b | |
parent | 88dbed3f5946b74cf02c1bb0082b8c50037720ea (diff) |
xhci: fix events for setup trb.
When we find a IOC bit set on a setup trb and therefore queue an event,
that should not stop events being generated for following data trbs.
So clear the 'reported' flag.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
-rw-r--r-- | hw/usb/hcd-xhci.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c index 39aacf75b6..927dc3652f 100644 --- a/hw/usb/hcd-xhci.c +++ b/hw/usb/hcd-xhci.c @@ -1793,6 +1793,14 @@ static void xhci_xfer_report(XHCITransfer *xfer) return; } } + + switch (TRB_TYPE(*trb)) { + case TR_SETUP: + reported = 0; + shortpkt = 0; + break; + } + } } |