Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3677217pxb; Mon, 24 Jan 2022 15:07:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJykreeKlYYNyJcI9dqyvlVZXef7Y2j+geDqZcvUImKpzgici80YTEUtbbHA6359akJyChJX X-Received: by 2002:a17:90a:7444:: with SMTP id o4mr512625pjk.65.1643065626379; Mon, 24 Jan 2022 15:07:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643065626; cv=none; d=google.com; s=arc-20160816; b=mq93geCwME4eoJgHWWfb9p5+9NpCESQyJ/vCPfXjFLuMXuWg67lmLxKx2uv9Wvhp8p TkawTbLlwBae/hIW6pDApVUZwW53f30KFX0P9uvluXHXm3T3jf08jyez5B1DuWkKjAzU 88Rwjp7YiUf/HRqCXpcLQw5jGuR+K+bZS8l5kTQvbuSdyDV7jwUEoIUND3YmhXVRHbRI X3IxeGrE+YHUCMR2XJjmmWVDdxuqjNbtqYU7tfTTWH+g2FRFcD4/tM47sxqExle4bYlM eG8SfWGPAQFIHra4wDLy+TZwtANfQdOWz+Ltkp0FJh8VUlvgF4dA3YEhQfFh2YmZnDPo sKpQ== 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=ulT8b8nOjzlvcXu6YwOYLZOMqCM2YYJQqIhdI4WdiDM=; b=pPBLS7eeonDktXAtxCI/6CsdGNnXXwF0IBjtqi/G636Xhz1EDE71SMEBp5lR/8Jwed TpswVUJ88HSoKR7KR6aVSJ1Dk8+JskT1x+hyKMFWagpBj2sQ4SOeuHWUJS5cyU8LAe8x pj0ieO9qWP+mf6eLKHjL5QLuphcMoJ+KSI4epS/9EsYa9bbJ1mhTvnppDL0oWeb0yRCh fH32DIGXKLw/I1/fIKhhkFdpwfpSsAkxsH+gdo/ozloKVqG38HRZDabk/TRgYv8B8nwu W1f38zl5+l1sUaXV5fC5NgcW6bl9RHAzs60m84FlMuwLalMuWqXaGoH8lcpHoYJmrHHp rIlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ehLcWXjC; 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 g9si14664751pgc.27.2022.01.24.15.06.24; Mon, 24 Jan 2022 15:07:06 -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=ehLcWXjC; 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 S1842583AbiAXXCL (ORCPT + 99 others); Mon, 24 Jan 2022 18:02:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1456635AbiAXVzC (ORCPT ); Mon, 24 Jan 2022 16:55:02 -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 503EDC07E294; Mon, 24 Jan 2022 12:35:57 -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 E385561535; Mon, 24 Jan 2022 20:35:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BFC45C340E5; Mon, 24 Jan 2022 20:35:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643056556; bh=FxcP2RgsoTRkS8NgbR8HIDQitWFPSxNhzfk712i6GBk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ehLcWXjCZX2lTk4yB7jtyXdOpUzgz2/xcgVLLtVFH8RbcLetcuk3Ipuk7SVfOZAQf cg6KlFI65FJh5dXM93OWflhrFinhO6wmwY8Vw6aAZ2R+ry36x5c289l6jWqylEumlb 0llu3hzxATJ4I40rImPPIVQkK5yJX0QVQDMhrtoE= 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 5.15 523/846] media: uvcvideo: Increase UVC_CTRL_CONTROL_TIMEOUT to 5 seconds. Date: Mon, 24 Jan 2022 19:40:40 +0100 Message-Id: <20220124184119.058010210@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184100.867127425@linuxfoundation.org> References: <20220124184100.867127425@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 cce5e38133cd3..c3ea6a53869f5 100644 --- a/drivers/media/usb/uvc/uvcvideo.h +++ b/drivers/media/usb/uvc/uvcvideo.h @@ -189,7 +189,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