Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3577130pxb; Mon, 24 Jan 2022 12:38:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJzuZRRJeFbG07L7l2O56sFuH33WLuN8mRHmarM7nIhX5Y38YKUb2appVW5Ip3VnzOBtP7G9 X-Received: by 2002:a17:90b:3808:: with SMTP id mq8mr3511486pjb.197.1643056715174; Mon, 24 Jan 2022 12:38:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643056715; cv=none; d=google.com; s=arc-20160816; b=PijrUAo/xAiDn/UnzRaWQapt1zirZnIrMx8zWs9E5r6lE0/2fym1C0cD64xzuWyWIi zhHB0m2M4FCeIWQyclkw8/fw3ZIq8bVwLu0UU0gqraYzfGrXVfXvJ3eekbrF7GtZaOr1 PMzjjg72r1kRlqyJlhLdGPuU0R+7Y8szj2Hbe4D9LusuDhyY2PVOe+X54D8wuAmgGwm4 QUZKz3Rw1cx7VqT6JP0I3LvGKbCS/9WWK76m8yqIiuKHP79TMU1oZVBU7jd6jmyoIWlz t1RDdBT0fp2vTX7Q/bhxV4uAinr8RGBkyBnC+KJMKkLA3kilu436TaSkNiD/P3Rkn+V5 cO2g== 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=n1Gcm9qrum2hWiouRBhnNg6HtlMosybs2RNuOR3UO1c=; b=HBzPkxwUscPMVVVY52lrhnf54FsfbUBQCS3T9HsJOhQiTZWPSJGX2heQ09d5DQ3How Zooy5PofV9umQfsBlc3Kms8NuYSCIo2Fro3TF28yNWBPFB9R7BqJ6whjHyXnUNMr2GHF gqnBJNK2G6Fqyv02Boj/eMsY3K1PN8yDC/sDZfJ1uCOkJpMJqf5YGvQ9ftlJ8OK1q4Mp SOJMgA1xzk0OfJrheEcubHsBxiyFy9oEYGRIQqjW+bJITJyZT3C9+7w2B+osySB3t517 2DQLa988MxZsPqUEo1BTKv5CZ0gRMSSSvtXKjFY0m95F5UE53FCSGiU02NIg6T2vV2K6 vJ0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="g/kVjTXH"; 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 b6si729938pgs.378.2022.01.24.12.38.15; Mon, 24 Jan 2022 12:38:35 -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="g/kVjTXH"; 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 S1357554AbiAXTuQ (ORCPT + 99 others); Mon, 24 Jan 2022 14:50:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355107AbiAXTkB (ORCPT ); Mon, 24 Jan 2022 14:40:01 -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 C6757C0612A7; Mon, 24 Jan 2022 11:19:06 -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 27D7B6140C; Mon, 24 Jan 2022 19:19:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 08E82C340E5; Mon, 24 Jan 2022 19:19:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643051945; bh=Bom9tySjE4yaK810prdtgeNbiLhRB7EH8JZuDDgOKlw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=g/kVjTXH2rafPEQZfR3zzeTb5hYDO4VE2KWkoUX3DOAQPhfI3SmGJTRAvpvv0+Rt5 6loDxp33ksEoJpnfafKTcb8ZVWmhUxtm9hbkmTdyms9uCv4awAiu9jNsWRlbqjfE+7 8mZBAAKmv2SbuDvQK7+ellsnFaMZRwkFOB2GAfXQ= 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.19 136/239] media: uvcvideo: Increase UVC_CTRL_CONTROL_TIMEOUT to 5 seconds. Date: Mon, 24 Jan 2022 19:42:54 +0100 Message-Id: <20220124183947.436079457@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183943.102762895@linuxfoundation.org> References: <20220124183943.102762895@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 a738486fd9d64..839ba3cc53119 100644 --- a/drivers/media/usb/uvc/uvcvideo.h +++ b/drivers/media/usb/uvc/uvcvideo.h @@ -176,7 +176,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