Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3565283pxb; Mon, 24 Jan 2022 12:20:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJwiCL0KcvA3n7USLLeYrBUj6VqvGaEI9difkFG1p3p2RDsXev21HiUErYaPtlpzL87J4C5u X-Received: by 2002:a63:bf48:: with SMTP id i8mr12720522pgo.368.1643055632776; Mon, 24 Jan 2022 12:20:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643055632; cv=none; d=google.com; s=arc-20160816; b=Q2OI+fbm8HBkgOrtEE6ancNRBFZqkwP21aa7w6+1eRUR84bX07tJhU7djbtyR9yxTD aDhhya58iTt7pFGiyQMs5xVU5g9oytqXbE5LTYjnlAJxWGeytLzerlt6kVHWi9EQ5Hvg VzYn0FujL7mXC5rYDLf1V4hNrRLtfpYbtoZo6esPVEv1eVwXZwLUZhmHWWWJPWxXqg4F yQkqHqVujn5EJcIn+H5Hs/nTAiAVwKz43PJxj48NgJ6XX+e13HRItvfBh+82su+6S0cx RT85FFqXXxPgS3rcSNG77mBQSd07cci4P9pyik8ggO7bbsRfmcU0ciKt/Mze3zEykpg3 xQDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=R5jA/BLlqZIQeMZSEnyOFw8gUMCRwJVwoshxcwZBTyw=; b=ggLHhIeerCGYco3RZ/42FXOETrQwjgi8UcZoYVHgFTlLpVYoZILsHpwNxK9/JsqLBd 3xFPCFCn0dXSfkxeac9pWTil27EuOt2YQ8X5G2EgYn4XAn74bABN5C4QamcFEcSw5o8d 5F/BSZi3CNrGtkDVfjbeoVBlxf4vcplCw8f1DwMRu89tZvys6uWVLN2W5hZQGFJlbG9/ cKgtvkt0qP+0AvvKWK6Cu9YlI1/N+C7Vr0kp8V71azM8GbGsAT51egONmdQjMkPtxGhb RLJsAZAyuRz1mrVKB9GrYsqjAjxkwlEPTA0F9tkG30zJfmoTBYcE5GYT/3uHmhZQoHv4 zf7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=bJApuYFp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u4si4781658plf.534.2022.01.24.12.20.20; Mon, 24 Jan 2022 12:20:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=bJApuYFp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351310AbiAXT0V (ORCPT + 99 others); Mon, 24 Jan 2022 14:26:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347404AbiAXTTM (ORCPT ); Mon, 24 Jan 2022 14:19:12 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2436C02C3EF; Mon, 24 Jan 2022 11:07:32 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3F4126090C; Mon, 24 Jan 2022 19:07:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A211EC340E7; Mon, 24 Jan 2022 19:07:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643051251; bh=N8LyJ0PBbd2eAEokv8SFCwHzwDSLj3fGyV6Q+dDmoeg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bJApuYFp2rvuJc3LZ/Riv2Sq4kwuaCWpapgbEySmhAvQYW0utOnz/AwADj4f8AgUK pW1iJ3u2+GHzTmuKGxP8noWKQHJXdUwz3oWeL7Bga+OafNLpiXjYOHJIDxssk5nzEH I4POZvydbJvImwWDZP1IuEXOkdJRK5gmy1SKksu0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, James Hilliard , Laurent Pinchart , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 4.14 101/186] media: uvcvideo: Increase UVC_CTRL_CONTROL_TIMEOUT to 5 seconds. Date: Mon, 24 Jan 2022 19:42:56 +0100 Message-Id: <20220124183940.363566908@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183937.101330125@linuxfoundation.org> References: <20220124183937.101330125@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: James Hilliard [ Upstream commit c8ed7d2f614cd8b315981d116c7a2fb01829500d ] Some uvc devices appear to require the maximum allowed USB timeout for GET_CUR/SET_CUR requests. So lets just bump the UVC control timeout to 5 seconds which is the same as the usb ctrl get/set defaults: USB_CTRL_GET_TIMEOUT 5000 USB_CTRL_SET_TIMEOUT 5000 It fixes the following runtime warnings: Failed to query (GET_CUR) UVC control 11 on unit 2: -110 (exp. 1). Failed to query (SET_CUR) UVC control 3 on unit 2: -110 (exp. 2). Signed-off-by: James Hilliard Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- 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 05398784d1c89..acb9f95127eb2 100644 --- a/drivers/media/usb/uvc/uvcvideo.h +++ b/drivers/media/usb/uvc/uvcvideo.h @@ -167,7 +167,7 @@ /* Maximum status buffer size in bytes of interrupt URB. */ #define UVC_MAX_STATUS_SIZE 16 -#define UVC_CTRL_CONTROL_TIMEOUT 500 +#define UVC_CTRL_CONTROL_TIMEOUT 5000 #define UVC_CTRL_STREAMING_TIMEOUT 5000 /* Maximum allowed number of control mappings per device */ -- 2.34.1