aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2022-05-03 20:20:27 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2022-05-04 07:26:39 +0000
commita1c0442b418b39e57d287750147b0aeae5140766 (patch)
tree5fed24f0dba5a5807546a9f5422229fd54644856 /sys/dev
parentd730333c80fe8bc60770d093cbf12f473a065ca4 (diff)
downloadsrc-a1c0442b418b39e57d287750147b0aeae5140766.tar.gz
src-a1c0442b418b39e57d287750147b0aeae5140766.zip
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
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/controller/xhci.c4
1 files 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;
}