Skip to contentSkip to conversation

media: usb: uvc: Fix incorrect timeout for Get Request

PATCH Superseded Jim Lin 1 participant 1 message Jun 30, 2017

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Jim Lin

author
#0 lore raw

PATCH 1/1 media: usb: uvc: Fix incorrect timeout for Get Request

Section 9.2.6.4 of USB 2.0 specification describes that "device must be able to return the first data packet to host within 500 ms of receipt of the request. For subsequent data packet, if any, the device must be able to return them within 500 ms".

This patch is to change incorrect timeout from 300 to 500 ms for Get Request.

---
 drivers/media/usb/uvc/uvcvideo.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/usb/uvc/uvcvideo.h +1 -1
index 15e415e..296b69b 100644
@@ -166,7 +166,7 @@
 /* Maximum status buffer size in bytes of interrupt URB. */
 #define UVC_MAX_STATUS_SIZE	16
 
-#define UVC_CTRL_CONTROL_TIMEOUT	300
+#define UVC_CTRL_CONTROL_TIMEOUT	500
 #define UVC_CTRL_STREAMING_TIMEOUT	5000
 
 /* Maximum allowed number of control mappings per device */
Signature · 1 line
2.7.4