All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] media: usb: uvc: Fix incorrect timeout for Get Request
@ 2017-06-30 10:11 Jim Lin
  0 siblings, 0 replies; only message in thread
From: Jim Lin @ 2017-06-30 10:11 UTC (permalink / raw)
  To: laurent.pinchart; +Cc: linux-kernel, linux-media, Jim Lin

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.

Signed-off-by: Jim Lin <jilin@nvidia.com>
---
 drivers/media/usb/uvc/uvcvideo.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/usb/uvc/uvcvideo.h b/drivers/media/usb/uvc/uvcvideo.h
index 15e415e..296b69b 100644
--- a/drivers/media/usb/uvc/uvcvideo.h
+++ b/drivers/media/usb/uvc/uvcvideo.h
@@ -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 */
-- 
2.7.4

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-06-30 10:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-30 10:11 [PATCH 1/1] media: usb: uvc: Fix incorrect timeout for Get Request Jim Lin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.