From: Gerd Hoffmann Date: Tue, 28 Apr 2015 07:31:44 +0000 (+0200) Subject: xhci: fix events for setup trb. X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~207^2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=df0f1692db9236a469496cc09fc7bd5faf31efad;p=sdk%2Femulator%2Fqemu.git 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 --- diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c index 39aacf7..927dc36 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; + } + } }