Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3597556pxb; Mon, 24 Jan 2022 13:09:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJxJsPhmaN6y6Gsbi6laaDQt/KKyg845f9J9bjk4e2jR7994STbyINDN3TcShPozqXdmwLAN X-Received: by 2002:a17:902:a505:b0:149:b646:a173 with SMTP id s5-20020a170902a50500b00149b646a173mr15724827plq.64.1643058570033; Mon, 24 Jan 2022 13:09:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643058570; cv=none; d=google.com; s=arc-20160816; b=n9Isj658tArPMhpwS0wdFhQSqR87kRwaBgZQcJP8wUkQxQQ/55noYCTVbAi/S1LTfn FVfNfJAynr+D5O/0o1j9yc11h6/GboJ5URRjAEyxvdOHkEoyQaWjFhhMO2CHDtg+M+FW 1BTvrILt9n4P4pR+L1b6z31XZyvz+4wRw4dFVYc9llU+IMYFz+nHyvzL0MnLxegQyyx4 NA7rW0MyuY/GKLQU/lDPY8/+paroES5ofeEQtQV2hpCPOiGYacDH2Xzt1++6qxOiD+7f QO/Nopy36GSXmu3idGe9Wc7ywIvvPxfNOjn0Ch2ui5fk/wgTMMws2dquIoSr+1m6EgGe SNsA== 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=c//HmJy1UI4CkywGhT/kAimWlngqQ3TbNj7jZhsRe7D1M3WoScVlnkp8pl+HU0Oan/ +z+w/qJFV+YQLbOePI6OZws8NSWo845f/npClzTyddlcoRTQx9P3QzuOPVtQEIT8r36A rb5b787ZL99K60H5g8eFc5yUwiNXVnMUClTjwS2powxFOds9B7fEp3iRPiBFDS6qoROL RzPY1Wga2/LMvBCtEDJErdrRn2itfLANvpVvTtbqGw5mSeODjTjvZZeyigr1ewXk6N77 Nra4ZaDmKI3diik+U8sYJCIatjwn18nU2jyiiPfIbyHnKSib7ckOK7BF+JRLgCPyh4uC s2aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=SG5OOckx; 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 q82si6125401pgq.208.2022.01.24.13.09.17; Mon, 24 Jan 2022 13:09:30 -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=SG5OOckx; 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 S1386234AbiAXUfQ (ORCPT + 99 others); Mon, 24 Jan 2022 15:35:16 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:40694 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355508AbiAXUNn (ORCPT ); Mon, 24 Jan 2022 15:13:43 -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 96AC66091B; Mon, 24 Jan 2022 20:13:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5CD4FC340E5; Mon, 24 Jan 2022 20:13:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643055221; bh=21wLfuqbveCS5JVAQjiuxwd7PXQ2jDvYYmglTZT6T1o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SG5OOckxHMkZFuTiruYg43jr9f+VIafaxwImUDN9yhJtEvbP350qxNO+TkNVepI3r FvNnqJCZPgeHOocKhoiKp9DXk4KJI4pdyuIWVY71q61xiFaJgfMgbtZo8W4jzIxM4K R8gzD9FTk3qHbNCqYEg5YDzEE63pswxoPhrzOB+A= 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.15 047/846] media: s2255: fix control-message timeouts Date: Mon, 24 Jan 2022 19:32:44 +0100 Message-Id: <20220124184102.569859643@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: 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;