Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752995AbdF3KLr (ORCPT ); Fri, 30 Jun 2017 06:11:47 -0400 Received: from hqemgate15.nvidia.com ([216.228.121.64]:5830 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751847AbdF3KLm (ORCPT ); Fri, 30 Jun 2017 06:11:42 -0400 X-PGP-Universal: processed; by hqpgpgate102.nvidia.com on Fri, 30 Jun 2017 03:11:31 -0700 From: Jim Lin To: CC: , , Jim Lin Subject: [PATCH 1/1] media: usb: uvc: Fix incorrect timeout for Get Request Date: Fri, 30 Jun 2017 18:11:23 +0800 Message-ID: <1498817483-2391-1-git-send-email-jilin@nvidia.com> X-Mailer: git-send-email 2.7.4 X-NVConfidentiality: public MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 958 Lines: 28 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 --- 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