Skip to contentSkip to conversation

xhci: set timer to retry xfers

PATCH New Gerd Hoffmann 1 participant 1 message Apr 28, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xhci: set timer to retry xfers

---
 hw/usb/hcd-xhci.c | 2 ++
 1 file changed, 2 insertions(+)
hw/usb/hcd-xhci.c +2 -0
index ba15ae0..2af3dd6 100644
@@ -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;
         }
     }
Signature · 1 line
1.8.3.1