From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:44717) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpLJ0-0007nA-1k for qemu-devel@nongnu.org; Mon, 23 Jan 2012 09:55:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RpLIt-0004Ub-7K for qemu-devel@nongnu.org; Mon, 23 Jan 2012 09:55:33 -0500 Received: from mx1.redhat.com ([209.132.183.28]:7991) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpLIs-0004UD-Ti for qemu-devel@nongnu.org; Mon, 23 Jan 2012 09:55:27 -0500 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 (8.14.4/8.14.4) with ESMTP id q0NEtQPA025294 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 23 Jan 2012 09:55:26 -0500 From: Gerd Hoffmann Date: Mon, 23 Jan 2012 15:55:08 +0100 Message-Id: <1327330511-16307-23-git-send-email-kraxel@redhat.com> In-Reply-To: <1327330511-16307-1-git-send-email-kraxel@redhat.com> References: <1327330511-16307-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 22/25] xhci: stop on errors List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann When some error happened we'll have to stop processing the endpoint. Signed-off-by: Gerd Hoffmann --- hw/usb-xhci.c | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/hw/usb-xhci.c b/hw/usb-xhci.c index 3cd5374..1e8836f 100644 --- a/hw/usb-xhci.c +++ b/hw/usb-xhci.c @@ -1719,10 +1719,14 @@ static void xhci_kick_ep(XHCIState *xhci, unsigned int slotid, unsigned int epid } } + if (epctx->state == EP_HALTED) { + DPRINTF("xhci: ep halted, stopping schedule\n"); + break; + } + /* * Qemu usb can't handle multiple in-flight xfers. - * Also xfers might be finished here already, - * possibly with an error. Stop here for now. + * Stop here for now. */ break; } -- 1.7.1