git: 513d89fef90a - stable/14 - usb: increase USB_PORT_RESET_RECOVERY

From: Warner Losh <imp_at_FreeBSD.org>
Date: Wed, 26 Mar 2025 01:28:56 UTC
The branch stable/14 has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=513d89fef90a64330580e9c5db4fd67d8198d7de

commit 513d89fef90a64330580e9c5db4fd67d8198d7de
Author:     Ahmad Khalifa <ahmadkhalifa570@gmail.com>
AuthorDate: 2024-07-16 17:38:12 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2025-03-26 01:28:38 +0000

    usb: increase USB_PORT_RESET_RECOVERY
    
    10ms seems to be too strict for some configurations, so increase to
    20ms.
    
    Reviewed by: imp
    Pull Request: https://github.com/freebsd/freebsd-src/pull/1327
    
    (cherry picked from commit e152944f1a16a4ff33b4e20b813ce4a54b884b90)
---
 sys/dev/usb/usb.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/usb/usb.h b/sys/dev/usb/usb.h
index 3d00cda27d18..a6c3c8030c73 100644
--- a/sys/dev/usb/usb.h
+++ b/sys/dev/usb/usb.h
@@ -114,7 +114,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		10	/* ms */
+#define	USB_PORT_RESET_RECOVERY		20	/* ms */
 #define	USB_PORT_POWERUP_DELAY		300	/* ms */
 #define	USB_PORT_RESUME_DELAY		(20*2)	/* ms */
 #define	USB_SET_ADDRESS_SETTLE		10	/* ms */