Skip to contentSkip to conversation

usb: increase USB control timeout value

PATCH New Christian Gmeiner 1 participant 1 message Nov 21, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usb: increase USB control timeout value

Increase USB control timeout value to 5000 milliseconds, matching the value used in Linux kernel. This improves communication stability with some USB devices.

In the concrete case a Apacer AP8GAH322B gets not deteced in a silent console configuration.

---
 include/usb.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/usb.h +1 -1
index bcad552f85..cd3f1d8225 100644
@@ -38,7 +38,7 @@
 #define USB_MAXCHILDREN			8	/* This is arbitrary */
 #define USB_MAX_HUB			16
 
-#define USB_CNTL_TIMEOUT 100 /* 100ms timeout */
+#define USB_CNTL_TIMEOUT 5000 /* 5000ms timeout */
 
 /*
  * This is the timeout to allow for submitting an urb in ms. We allow more
Signature · 1 line
2.23.0