Received: from eggs.gnu.org ([2001:4830:134:3::10]:55209) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YpZdX-0000Nb-Vq for qemu-devel@nongnu.org; Tue, 05 May 2015 05:59:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YpZdU-0000Hi-Qb for qemu-devel@nongnu.org; Tue, 05 May 2015 05:59:35 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45695) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YpZdU-0000Ha-Ly for qemu-devel@nongnu.org; Tue, 05 May 2015 05:59:32 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id 40D068EA24 for ; Tue, 5 May 2015 09:59:32 +0000 (UTC) From: Gerd Hoffmann Date: Tue, 5 May 2015 11:59:13 +0200 Message-Id: <1430819953-12931-3-git-send-email-kraxel@redhat.com> In-Reply-To: <1430819953-12931-1-git-send-email-kraxel@redhat.com> References: <1430819953-12931-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 2/2] xhci: fix events for setup trb. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: lersek@redhat.com, Gerd Hoffmann 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 --- hw/usb/hcd-xhci.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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; + } + } } -- 1.8.3.1