git: 135df7785431 - main - usb: xhci: allow up to 1s for SET_ADDRESS

Kyle Evans <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.src
Message-ID <6a7a7a6a.22b13.5a7751fe__29801.5872411028$1786411684$gmane$org@gitrepo.freebsd.org>
The branch main has been updated by kevans:

URL: https://cgit.FreeBSD.org/src/commit/?id=135df778543123a7dea08553c78da1b51a6b3098

commit 135df778543123a7dea08553c78da1b51a6b3098
Author:     Kyle Evans <[email protected]>
AuthorDate: 2026-08-11 01:26:47 +0000
Commit:     Kyle Evans <[email protected]>
CommitDate: 2026-08-11 01:26:59 +0000

    usb: xhci: allow up to 1s for SET_ADDRESS
    
    Some devices take a little longer, and the spec doesn't really seem to
    mandate a maximum.  The common path in usbd_req_set_address() has
    already been bumped to 1s and I have a headset (Logitech H390) that does
    need a little bit longer, so let's match it in xhci.
    
    Reviewed by:    aokblast
    Differential Revision:  https://reviews.freebsd.org/D58717
---
 sys/dev/usb/controller/xhci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/usb/controller/xhci.c b/sys/dev/usb/controller/xhci.c
index d1d98c1c74bd..c385631f22d7 100644
--- a/sys/dev/usb/controller/xhci.c
+++ b/sys/dev/usb/controller/xhci.c
@@ -1399,7 +1399,7 @@ xhci_cmd_set_address(struct xhci_softc *sc, uint64_t input_ctx,
 
 	trb.dwTrb3 = htole32(temp);
 
-	return (xhci_do_command(sc, &trb, 500 /* ms */));
+	return (xhci_do_command(sc, &trb, 1000 /* ms */));
 }
 
 static usb_error_t
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.