aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2021-05-18 13:22:32 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2021-06-02 11:25:19 +0000
commit5bbf7afe30662343487b6cecc43693edc82c5b0e (patch)
treef84a55e7570cf9375afa6770823c735763df178f
parent9f98b3ea746f97b61d37f1c11d0e7abb3cd81305 (diff)
downloadsrc-5bbf7afe30662343487b6cecc43693edc82c5b0e.tar.gz
src-5bbf7afe30662343487b6cecc43693edc82c5b0e.zip
Update USB_PORT_RESET_RECOVERY to comply with the USB 2.0 specification which
says it should be max 10 milliseconds. This may fix some USB enumeration issues: > usbd_req_re_enumerate: addr=3, set address failed! (USB_ERR_IOERROR, ignored) > usbd_setup_device_desc: getting device descriptor at addr 3 failed, Found by: Zhichao1.Li@dell.com Sponsored by: Mellanox Technologies // NVIDIA Networking (cherry picked from commit 70ffaaa69c830d26b59136d0b0447ab2f8683db8)
-rw-r--r--sys/dev/usb/usb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/usb.h b/sys/dev/usb/usb.h
index 346ecd3059d7..dcdb62114d63 100644
--- a/sys/dev/usb/usb.h
+++ b/sys/dev/usb/usb.h
@@ -115,7 +115,7 @@ MALLOC_DECLARE(M_USBDEV);
/* Allow for marginal and non-conforming devices. */
#define USB_PORT_RESET_DELAY 50 /* ms */
#define USB_PORT_ROOT_RESET_DELAY 200 /* ms */
-#define USB_PORT_RESET_RECOVERY 250 /* ms */
+#define USB_PORT_RESET_RECOVERY 10 /* ms */
#define USB_PORT_POWERUP_DELAY 300 /* ms */
#define USB_PORT_RESUME_DELAY (20*2) /* ms */
#define USB_SET_ADDRESS_SETTLE 10 /* ms */