aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2022-05-03 16:10:49 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2022-05-03 16:13:53 +0000
commit09dd1adfa4c9bb1b49f4ef5524a308732883e132 (patch)
tree87b6e02a3e31a92d3eba55854fac7ba521ac49ea
parente276d281503160ba3648bd394cde95736ee53329 (diff)
downloadsrc-09dd1adfa4c9bb1b49f4ef5524a308732883e132.tar.gz
src-09dd1adfa4c9bb1b49f4ef5524a308732883e132.zip
xhci(4): Always add and evaluate the slot context.
Because the maximum number of endpoint contexts is stored there. Tested by: ehaupt@ PR: 262882 MFC after: 3 hours Sponsored by: NVIDIA Networking
-rw-r--r--sys/dev/usb/controller/xhci.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/usb/controller/xhci.c b/sys/dev/usb/controller/xhci.c
index e35a0a5d2407..933a459170d1 100644
--- a/sys/dev/usb/controller/xhci.c
+++ b/sys/dev/usb/controller/xhci.c
@@ -3867,7 +3867,11 @@ xhci_configure_reset_endpoint(struct usb_xfer *xfer)
}
}
- xhci_configure_mask(udev, mask, 0);
+ /*
+ * Always need to evaluate the slot context, because the maximum
+ * number of endpoint contexts is stored there.
+ */
+ xhci_configure_mask(udev, mask | 1U, 0);
if (!(sc->sc_hw.devs[index].ep_configured & mask)) {
err = xhci_cmd_configure_ep(sc, buf_inp.physaddr, 0, index);