From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45366) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yn0G4-00083U-Lo for qemu-devel@nongnu.org; Tue, 28 Apr 2015 03:48:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yn0Fz-0004xm-MU for qemu-devel@nongnu.org; Tue, 28 Apr 2015 03:48:44 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34664) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yn0Fz-0004xi-Hn for qemu-devel@nongnu.org; Tue, 28 Apr 2015 03:48:39 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id 167198EA5A for ; Tue, 28 Apr 2015 07:48:39 +0000 (UTC) From: Gerd Hoffmann Date: Tue, 28 Apr 2015 09:48:28 +0200 Message-Id: <1430207309-29649-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH] xhci: set timer to retry xfers List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann Signed-off-by: Gerd Hoffmann --- hw/usb/hcd-xhci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c index ba15ae0..2af3dd6 100644 --- a/hw/usb/hcd-xhci.c +++ b/hw/usb/hcd-xhci.c @@ -2224,6 +2224,8 @@ static void xhci_kick_ep(XHCIState *xhci, unsigned int slotid, if (xfer->running_retry) { DPRINTF("xhci: xfer nacked, stopping schedule\n"); epctx->retry = xfer; + timer_mod(epctx->kick_timer, qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) + + epctx->interval * 125000); break; } } -- 1.8.3.1