diff options
author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2022-05-03 16:10:49 +0000 |
---|---|---|
committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2022-05-04 07:30:12 +0000 |
commit | cacb5f3ea5d39d9ee02e6f278993fb1b308ca9ba (patch) | |
tree | d3c46083bae9ed21f75108e5b31c6ea7bbdc7a8c | |
parent | a1ec8baee5dd0cb8e344ab0e2feafcf49f4a802a (diff) | |
download | src-cacb5f3ea5d39d9ee02e6f278993fb1b308ca9ba.tar.gz src-cacb5f3ea5d39d9ee02e6f278993fb1b308ca9ba.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
Sponsored by: NVIDIA Networking
(cherry picked from commit 09dd1adfa4c9bb1b49f4ef5524a308732883e132)
-rw-r--r-- | sys/dev/usb/controller/xhci.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/usb/controller/xhci.c b/sys/dev/usb/controller/xhci.c index 17fcc3ee09cf..4d7d9a199807 100644 --- a/sys/dev/usb/controller/xhci.c +++ b/sys/dev/usb/controller/xhci.c @@ -3951,7 +3951,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); |