From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38624) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YqgjF-0008N3-SH for qemu-devel@nongnu.org; Fri, 08 May 2015 07:46:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YqgjA-0007ju-5k for qemu-devel@nongnu.org; Fri, 08 May 2015 07:46:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53126) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YqgjA-0007jm-0z for qemu-devel@nongnu.org; Fri, 08 May 2015 07:46:00 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id 9CC1935C80C for ; Fri, 8 May 2015 11:45:59 +0000 (UTC) From: Gerd Hoffmann Date: Fri, 8 May 2015 13:45:38 +0200 Message-Id: <1431085553-6055-5-git-send-email-kraxel@redhat.com> In-Reply-To: <1431085553-6055-1-git-send-email-kraxel@redhat.com> References: <1431085553-6055-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PULL 04/19] xhci: fix events for setup trb. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: 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