projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88dbed3
)
xhci: fix events for setup trb.
author
Gerd Hoffmann
<kraxel@redhat.com>
Tue, 28 Apr 2015 07:31:44 +0000
(09:31 +0200)
committer
Gerd Hoffmann
<kraxel@redhat.com>
Fri, 8 May 2015 11:01:06 +0000
(13:01 +0200)
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>
hw/usb/hcd-xhci.c
patch
|
blob
|
history
diff --git
a/hw/usb/hcd-xhci.c
b/hw/usb/hcd-xhci.c
index 39aacf75b6ebd6270e30fb60b94c5e121195ac21..927dc3652fd3b0c2a93b3fd1b679ab147f849cf5 100644
(file)
--- 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;
+ }
+
}
}