Module Name:    src
Committed By:   jmcneill
Date:           Sat Jan 20 21:09:28 UTC 2024

Modified Files:
        src/sys/dev/usb: usb.h

Log Message:
usb: increase USB_PORT_RESET_RECOVERY from 10ms to 20ms

I changed this from 250ms to 10ms back in 2021 based on a similar FreeBSD
change, but it seems to be a bit too aggressive for some platforms.


To generate a diff of this commit:
cvs rdiff -u -r1.123 -r1.124 src/sys/dev/usb/usb.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/usb/usb.h
diff -u src/sys/dev/usb/usb.h:1.123 src/sys/dev/usb/usb.h:1.124
--- src/sys/dev/usb/usb.h:1.123	Mon Jul 31 23:52:12 2023
+++ src/sys/dev/usb/usb.h	Sat Jan 20 21:09:28 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: usb.h,v 1.123 2023/07/31 23:52:12 christos Exp $	*/
+/*	$NetBSD: usb.h,v 1.124 2024/01/20 21:09:28 jmcneill Exp $	*/
 
 /*
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -778,7 +778,7 @@ typedef struct {
 /* Allow for marginal (i.e. non-conforming) devices. */
 #define USB_PORT_RESET_DELAY	50  /* ms */
 #define USB_PORT_ROOT_RESET_DELAY 250  /* ms */
-#define USB_PORT_RESET_RECOVERY	10  /* ms */
+#define USB_PORT_RESET_RECOVERY	20  /* ms */
 #define USB_PORT_POWERUP_DELAY	300 /* ms */
 #define USB_SET_ADDRESS_SETTLE	10  /* ms */
 #define USB_RESUME_DELAY	(50*5)  /* ms */

Reply via email to