xhci: set timer to retry xfers
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 28 Apr 2015 07:19:14 +0000 (09:19 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 8 May 2015 10:39:18 +0000 (12:39 +0200)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/hcd-xhci.c

index ba15ae0..2af3dd6 100644 (file)
@@ -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;
         }
     }