Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3693853pxb; Mon, 24 Jan 2022 15:33:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJxOc8WIe+3zLcKKhFDWH5KY+ZEW9PaeeNNEQM7tzU6wO8Hcnew0QuMiRnB0LfN0oJc5SnEP X-Received: by 2002:a17:902:ce8f:b0:14b:87c:8932 with SMTP id f15-20020a170902ce8f00b0014b087c8932mr16107887plg.3.1643067212616; Mon, 24 Jan 2022 15:33:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643067212; cv=none; d=google.com; s=arc-20160816; b=W0HmqgJt8K6JFZohqmUraFF3aPgAHsTW/b8BZSlLR2lWzy1BMpc40esg0xQ5UHq3cF FgYMnpbGbuSd0rgwQ90HdxE8G1kzmtaLDOJ0vKWGf/rJsIKGCAi6Z/MZowcM9ItaU8XU r67wvx35ueq8MA8871uLXUVpYgibZpBDr/nXvIUDDnqHOd1Ci1ekM6rppmFY6vy4xAE5 ZIxPZPhLTYxkTQtzH3hcFf/DpUFGaucKUzstnaz8THhJgMWU+uqJ+Di5u9mEBXPxQL2h APO0vMopT83LJ34lDiSRzvG0JXwAWOsRTdbHszPvwuzV0l4ujqd2jqI3JcirC5qrxI2P cb5Q== 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=vk2/5S/PYyJ4tPZfru6cJrEmM+Pyp8PoMrI53qLUTeQ=; b=AgRmTBMhB1DzsDKmhxrRY7SSX4jrKtx4m7dUfqUNzvNOdb6yfVy6o5/I9K8JuIPUCO FcStNzVmjFXtwcoG0Ktf7zXl8VCNMBF9U3iv366tYeJeoGSB3MzSq6DPzgfpJCTn10ow ObAXRrTnok6JQGvx3kIuwVUtA+MgU710Zzpodc8D/y/q2oM3fq7kaKevxdXJnXcFL+4i lh+FR+RIkmMYMWL+r5y3tbVpPpPGxMp8PGFMz9JnFTbVk+LnxDoVZnKyBcgWb31lzcEQ vgHTt+/TWsGm+RciPZ87cCnyJJbgnGUTshEEj58C8h7Ml7YnrjRGyZ404aGIzUduKoYk plcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=qylMtf8d; 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 y7si8021280pfw.370.2022.01.24.15.33.20; Mon, 24 Jan 2022 15:33: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=qylMtf8d; 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 S1849260AbiAXXZR (ORCPT + 99 others); Mon, 24 Jan 2022 18:25:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1587764AbiAXW3h (ORCPT ); Mon, 24 Jan 2022 17:29:37 -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 A0B9AC02B860; Mon, 24 Jan 2022 12:55:20 -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 444F0B811FB; Mon, 24 Jan 2022 20:55:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6BDD7C340E5; Mon, 24 Jan 2022 20:55:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643057719; bh=21wLfuqbveCS5JVAQjiuxwd7PXQ2jDvYYmglTZT6T1o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qylMtf8dLYTZMseCw99RNBHp3VWDISIjac+PJR0VOjQsmWCHVgq3g0DUhFCag25w4 hSKCZLHnEYvbpfFxa8pHY2SKQtjL3Uh3xUzmUqBkpOXROcIR4tjF3SHZbcbztfHPs+ kRw0zTvMceo//vqJ8KoWBsr+drEnZicMkjsVqn/Y= 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.16 0049/1039] media: s2255: fix control-message timeouts Date: Mon, 24 Jan 2022 19:30:38 +0100 Message-Id: <20220124184126.790329143@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@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 @@ -1882,7 +1882,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); @@ -1891,7 +1891,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;