From: Gerd Hoffmann Date: Tue, 28 Apr 2015 07:19:14 +0000 (+0200) Subject: xhci: set timer to retry xfers X-Git-Tag: v2.4.0-rc0~144^2~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4e8cfbe1143d8384387595b500212d7a7f11aeae;p=thirdparty%2Fqemu.git xhci: set timer to retry xfers Signed-off-by: Gerd Hoffmann --- diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c index ba15ae00198..2af3dd6e835 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; } }