Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 May 2022 12:27:33 GMT
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 465c5bd88e64 - releng/13.1 - xhci(4): Always add and evaluate the slot context.
Message-ID:  <202205041227.244CRXHx088997@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch releng/13.1 has been updated by hselasky:

URL: https://cgit.FreeBSD.org/src/commit/?id=465c5bd88e64852b39d711ea3e565edc90d65210

commit 465c5bd88e64852b39d711ea3e565edc90d65210
Author:     Hans Petter Selasky <hselasky@FreeBSD.org>
AuthorDate: 2022-05-03 16:10:49 +0000
Commit:     Hans Petter Selasky <hselasky@FreeBSD.org>
CommitDate: 2022-05-04 07:20:54 +0000

    xhci(4): Always add and evaluate the slot context.
    
    Because the maximum number of endpoint contexts is stored there.
    
    Tested by:      ehaupt@
    PR:             262882
    Approved by:    re (gjb, early MFC)
    Sponsored by:   NVIDIA Networking
    
    (cherry picked from commit 09dd1adfa4c9bb1b49f4ef5524a308732883e132)
    (cherry picked from commit 6d8c6b24ee0a0416204356a98e4e7606489894c5)
---
 sys/dev/usb/controller/xhci.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/sys/dev/usb/controller/xhci.c b/sys/dev/usb/controller/xhci.c
index 9e812edae991..aa8ea280eb8b 100644
--- a/sys/dev/usb/controller/xhci.c
+++ b/sys/dev/usb/controller/xhci.c
@@ -3917,7 +3917,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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202205041227.244CRXHx088997>