git: a1c0442b418b - main - xhci(4): Tweak USB port speed checks to allow newer super speed generations.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 04 May 2022 07:27:17 UTC
The branch main has been updated by hselasky: URL: https://cgit.FreeBSD.org/src/commit/?id=a1c0442b418b39e57d287750147b0aeae5140766 commit a1c0442b418b39e57d287750147b0aeae5140766 Author: Hans Petter Selasky <hselasky@FreeBSD.org> AuthorDate: 2022-05-03 20:20:27 +0000 Commit: Hans Petter Selasky <hselasky@FreeBSD.org> CommitDate: 2022-05-04 07:26:39 +0000 xhci(4): Tweak USB port speed checks to allow newer super speed generations. This allows setting the U1 and U2 port timeout values. MFC after: 1 week Sponsored by: NVIDIA Networking --- sys/dev/usb/controller/xhci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/usb/controller/xhci.c b/sys/dev/usb/controller/xhci.c index 2ad72a48293d..15835d0a641b 100644 --- a/sys/dev/usb/controller/xhci.c +++ b/sys/dev/usb/controller/xhci.c @@ -3550,7 +3550,7 @@ xhci_roothub_exec(struct usb_device *udev, switch (value) { case UHF_PORT_U1_TIMEOUT: - if (XHCI_PS_SPEED_GET(v) != 4) { + if (XHCI_PS_SPEED_GET(v) < XHCI_PS_SPEED_SS) { err = USB_ERR_IOERROR; goto done; } @@ -3561,7 +3561,7 @@ xhci_roothub_exec(struct usb_device *udev, XWRITE4(sc, oper, port, v); break; case UHF_PORT_U2_TIMEOUT: - if (XHCI_PS_SPEED_GET(v) != 4) { + if (XHCI_PS_SPEED_GET(v) < XHCI_PS_SPEED_SS) { err = USB_ERR_IOERROR; goto done; }