]> xenbits.xensource.com Git - people/andrewcoop/seabios.git/commitdiff
xhci: Set the interval parameter on interrupt pipes.
authorKevin O'Connor <kevin@koconnor.net>
Fri, 27 Dec 2013 18:37:11 +0000 (13:37 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Wed, 29 Jan 2014 17:57:01 +0000 (12:57 -0500)
Be sure to set the interval parameter when creating an interrupt based
pipe.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
src/hw/usb-xhci.c

index 0833cb9f2b1b94690fb27bca7b2a45e2ce354e42..b10fceb6b42f580f34e5ac6fb4bdb3114de4c55a 100644 (file)
@@ -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);