Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3558068pxb; Mon, 24 Jan 2022 12:10:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJxqVRhpeNxYAppYhK7FH5p8LzR54j3jAbuuqtKT+TTVWhyqKfDKzwz2FOWv+9CkiMDCQfeC X-Received: by 2002:a17:902:ce8e:b0:14b:3589:6c30 with SMTP id f14-20020a170902ce8e00b0014b35896c30mr10037963plg.61.1643055053790; Mon, 24 Jan 2022 12:10:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643055053; cv=none; d=google.com; s=arc-20160816; b=ibgVbNOTjfSQafet9nE3M1mdWfIJ619oo8nfNH/1F1jhuQXRcHAakqxlWEuVXs2lCg la2xkN6XmLfgMGE4U3EEp9t7zXjpqEf6UgXkYNsCUhWL67nIK3xexIasVQ5CphrZJkel T971snfuzO3WIc5a7/xTz6ybaYFoKCbEAf7HPejrkArskOt7qGIsz41lGBnJU8T2AiK+ xx9vEJnIcxd8aFtNWYcmAevhicf1yg7t1yQwryXgtenE19gtB0IT88huOzD56YiaOY8R UCUpZIIS/EYE0DyqX5XTH/fkGIGGe4IzFjX+4101Z2hM5KsPSFOizjf203UFfVeXF2a6 UGgw== 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=LpDeERkAx0igVY/e79sPe1FEz7vLwX686wOy/+t9jPo=; b=fFFiM6CviCDxpMrTr1v2B2P3u84bx3WGraA6nh+nWiLnY9OqNAlBBFGp4ni2R474Lp dnaHwkiKzK2klOwefRmlCKj48OcNYC0+fQNzNrJSBiH57kdim2flvLCkdLADbJdVelDT Qp3mC8I+JQ5EjyHNd1p8nVr28HXo4aryNP74XC+YsAtmx3/tjO0mAy1tB1C7IbU/d0p0 iaaJPOCgSeRZgpVtxKg0z9gFot7SJw58P8N/5Q+vAUbu0wJPWFtORdddt1L282K83Wx0 e6umDvQiOHfGPIihsdIuG3kEtJftU5/T0z/4JvArLHk9kDc+bkWXVLmY5wNscNHCi2Wg NRNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=SC1c5MV9; 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 y15si13727973plr.199.2022.01.24.12.10.41; Mon, 24 Jan 2022 12:10:53 -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=SC1c5MV9; 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 S1346144AbiAXTMa (ORCPT + 99 others); Mon, 24 Jan 2022 14:12:30 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:33758 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344776AbiAXTDe (ORCPT ); Mon, 24 Jan 2022 14:03:34 -0500 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 E2AD860B82; Mon, 24 Jan 2022 19:03:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A1DCEC340E5; Mon, 24 Jan 2022 19:03:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643051010; bh=3fRVJbvYCMh2hgxAvyGf4mfvv6IZ1ArQL+PgRGLWcFM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SC1c5MV9WN35G/4Lm5RduB4eiBHl6N/E/m8seI4gZLX/yTgaoWXpyJW/9Kyg9hYnM Olop0jjlohneWLGgq3wdx9STrANvqjSIMLrSFZwH9tJYGZ3cTWe2iUJf4sS9tWt+bk 13eS3OfvcBLhzeQbHLD8P+OHQCG/oP670KoBE1iQ= 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 4.14 025/186] media: s2255: fix control-message timeouts Date: Mon, 24 Jan 2022 19:41:40 +0100 Message-Id: <20220124183937.929418306@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: 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 @@ -1911,7 +1911,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); @@ -1920,7 +1920,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;