From b6a406551b2eb469cbb39579ed1eabdd12718939 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 27 Dec 2013 13:37:11 -0500 Subject: [PATCH] xhci: Set the interval parameter on interrupt pipes. Be sure to set the interval parameter when creating an interrupt based pipe. Signed-off-by: Kevin O'Connor --- src/hw/usb-xhci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hw/usb-xhci.c b/src/hw/usb-xhci.c index 0833cb9..b10fceb 100644 --- a/src/hw/usb-xhci.c +++ b/src/hw/usb-xhci.c @@ -895,6 +895,8 @@ xhci_alloc_pipe(struct usbdevice_s *usbdev in->slot.ctx[0] |= (31 << 27); // context entries int e = pipe->epid-1; + if (eptype == USB_ENDPOINT_XFER_INT) + in->ep[e].ctx[0] = (usb_getFrameExp(usbdev, epdesc) + 3) << 16; in->ep[e].ctx[1] |= (eptype << 3); if (epdesc->bEndpointAddress & USB_DIR_IN) in->ep[e].ctx[1] |= (1 << 5); -- 2.39.5