Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3588947pxb; Mon, 24 Jan 2022 12:57:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJyldzQRinBqUw3M9PH/XJJmSrNAdaOWvsWRqG0SKvzZC2FSH+TaInJO6GsLbt7LwtucQr0x X-Received: by 2002:a17:90b:3106:: with SMTP id gc6mr71275pjb.77.1643057860763; Mon, 24 Jan 2022 12:57:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643057860; cv=none; d=google.com; s=arc-20160816; b=DcC6bWVf1AqCAs5cFibikCOwWnwmGVwtPl4YLxLFIq5ocDoq8ZSFfhBXSWZySnnydo +Rl2vLrRAj4kb6bUiHY3kljWUu8NqjGmbnzRQwkqcUvnEEOx5rsXlrgrWieneER0idJv C9OyYohuGWAkkJY6pAO8agi99yeS94sGINKMCb2kUyVDgKFMtVrPuJe8qrbE7zMWuFiW 0g5l4iTSY808yCN3718D3Yqvlza2Lr9Ue71vbkNW+mqDFY9gIzZRXhkpAVxxiDFRahCM bzgfU/iYtUGn/VL3F6JV8coGvIiVjNb9ylXZ5f0Nk92RtNpHEfIRkjbbVdYfewNIRA4J WOTg== 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=Zo3CES6vU/P9QGQvtvJvfIkzldgUzBR8PKlTA64OUfA=; b=Vmmb3F4eY7A2z5L822ZfdCziXaDk6lx7uqMytmsoVw18BgIVNjSWv6zIUkT/wdpybG T9grjrciLpRSHCEmcMFXB+vz8nDdNnhRpk66XPZPT1yeX0a5uMDGqzX18bFnGcNMPiII vbtf5ong+9EWNxW92I3ARoICQv1+KZsYJv/X3BHmXhntqlA8UXVK9TbnhdDe9BJJzWov UV0/i1Y3n13IFLXn/jAE1DZ/bofnzr9r/DSvnI1p/9+GQe0Pj8AZFqI2Ey47txXOWVBZ 58JdVRtve41B38QjtWjj754mN45/FtjgDpRiDIVePaAa0XUXoNM+59830p0U1N5VOpUE PvXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="YNkME/0r"; 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 f9si7024810pgc.524.2022.01.24.12.57.24; Mon, 24 Jan 2022 12:57:40 -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="YNkME/0r"; 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 S1380287AbiAXUQF (ORCPT + 99 others); Mon, 24 Jan 2022 15:16:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348022AbiAXTwN (ORCPT ); Mon, 24 Jan 2022 14:52:13 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C458C0617A7; Mon, 24 Jan 2022 11:25:18 -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 ams.source.kernel.org (Postfix) with ESMTPS id 046B6B8122A; Mon, 24 Jan 2022 19:25:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 219F9C340E5; Mon, 24 Jan 2022 19:25:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643052315; bh=UQ1kjsQKUztbG+mC2ezX3DTEhk+4oW25wpr9eV2E+4U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YNkME/0rhIXstVmjxx4oELvX5nXN387e3yUArXWYXnI23zFMG8VG0ZEhWth9nIYkh SvBw3xK+8fwHcNoAeqvHFHWehssE5TcN0IvDacID6ctEIvjp8DCEKlobFlkSjqliul 72u/F51N7/R0J1fYx4i6m6hkAYdekYcJNHjlCE2E= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Johan Hovold , Hans Verkuil , Mauro Carvalho Chehab Subject: [PATCH 5.4 019/320] media: s2255: fix control-message timeouts Date: Mon, 24 Jan 2022 19:40:03 +0100 Message-Id: <20220124183954.410001351@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183953.750177707@linuxfoundation.org> References: <20220124183953.750177707@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: Johan Hovold commit f71d272ad4e354097020a4e6b1dc6e4b59feb50f upstream. USB control-message timeouts are specified in milliseconds and should specifically not vary with CONFIG_HZ. Use the common control-message timeout define for the five-second timeouts. Fixes: 38f993ad8b1f ("V4L/DVB (8125): This driver adds support for the Sensoray 2255 devices.") Cc: stable@vger.kernel.org # 2.6.27 Signed-off-by: Johan Hovold Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Greg Kroah-Hartman --- drivers/media/usb/s2255/s2255drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/media/usb/s2255/s2255drv.c +++ b/drivers/media/usb/s2255/s2255drv.c @@ -1884,7 +1884,7 @@ static long s2255_vendor_req(struct s225 USB_TYPE_VENDOR | USB_RECIP_DEVICE | USB_DIR_IN, Value, Index, buf, - TransferBufferLength, HZ * 5); + TransferBufferLength, USB_CTRL_SET_TIMEOUT); if (r >= 0) memcpy(TransferBuffer, buf, TransferBufferLength); @@ -1893,7 +1893,7 @@ static long s2255_vendor_req(struct s225 r = usb_control_msg(dev->udev, usb_sndctrlpipe(dev->udev, 0), Request, USB_TYPE_VENDOR | USB_RECIP_DEVICE, Value, Index, buf, - TransferBufferLength, HZ * 5); + TransferBufferLength, USB_CTRL_SET_TIMEOUT); } kfree(buf); return r;