From: Kevin O'Connor Date: Sun, 29 Dec 2013 23:17:57 +0000 (-0500) Subject: xhci: Don't use a dummy endpoint count in configure command. X-Git-Tag: rel-1.7.5-rc1~58 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=81b64824dad0411473e752a66665c4a44c579f6e;p=seabios.git xhci: Don't use a dummy endpoint count in configure command. At least some real-world controllers expect the endpoint count in the inctx to be accurate, so set it to the pipe currently being activated. Signed-off-by: Kevin O'Connor --- diff --git a/src/hw/usb-xhci.c b/src/hw/usb-xhci.c index 9a1954c..6f5604e 100644 --- a/src/hw/usb-xhci.c +++ b/src/hw/usb-xhci.c @@ -922,7 +922,7 @@ xhci_alloc_pipe(struct usbdevice_s *usbdev goto fail; in->add |= (1 << pipe->epid); struct xhci_slotctx *slot = (void*)&in[1 << xhci->context64]; - slot->ctx[0] |= (31 << 27); // context entries + slot->ctx[0] = (slot->ctx[0] & ~0xf8000000) | (pipe->epid << 27); struct xhci_epctx *ep = (void*)&in[(pipe->epid+1) << xhci->context64]; if (eptype == USB_ENDPOINT_XFER_INT)