Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3635784pxb; Mon, 24 Jan 2022 14:04:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJxMkmWB6ks2TPgIkQRktRFpm/dYBLMbjtUC43+nfUMR/xcXuNWWLE7GtPCWggla+ls3t41a X-Received: by 2002:a17:90b:368d:: with SMTP id mj13mr336418pjb.237.1643061880407; Mon, 24 Jan 2022 14:04:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643061880; cv=none; d=google.com; s=arc-20160816; b=yEff547NdifDR4Xek3HJkxRTV6MrQ+r5KWsBmk94Pfc+fgYBd8KfwaAkq3nrSlWzJ8 XRr8nm8SsWfAbuKgqwE5XdTXnoIYvJT7qKh7Gd0Jz9fofqmF3Jhxru+U9QHumK4kJFIH 8y4DWfiLzowbxSz357RPrFOZNXaaLOD9OhnVCaPfSwcNhFSoAFP6c8prOVVbJsYTg/9x eJ7Na2M2D7q0w/yGiT8ORXfdZlBT6zUYxm/nnOE+zBakHXufkfERrxqRNRTP5k3kE0rD tpSFFuvGzg1Fk6jyayOyxDSSdBJnMiu/mSmnLAEdJsPtR8+Q5pLSMuMa1nzjxz5Yr/Sm O3gg== 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=jpU72TyPHN6zJzxCNkmBsvv6TRVB9VWRZKNVG3pRfD8=; b=MddrUBfqMlaWZgnMONWiGMAaYiBshwA+2loXhMF4UJW9x0rGYl5r5bQN15/fQ7flxI si81zZnLQetb8aCP+KAAvqLeqp/SOdQD6YGNwlkEKaJKn1L9Lzxv+yhHkWh5Lo+dehoH 8obMyA9M/2VkrxHNAgknvPsHzlNdjjB+F410w4N66pgfAgI3DrRvPhknQJZqQrpBp353 mUU1ZgeXONgxIaPjqMUNT2ztrmQArEj01ZHYHWLcmpqilGM7L9XlPPvKenrl2nm2Lut/ 1SNEXMHKaTMy0+29a8s+9+GVtNSC7OvBQ3ZlP2F+/94/D377opObud+KDF80IpZjeAgw 54iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=M+6ESDUo; 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 np1si640620pjb.84.2022.01.24.14.04.27; Mon, 24 Jan 2022 14:04: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=M+6ESDUo; 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 S1575830AbiAXVwf (ORCPT + 99 others); Mon, 24 Jan 2022 16:52:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353546AbiAXVTe (ORCPT ); Mon, 24 Jan 2022 16:19:34 -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 0B338C06F8E7; Mon, 24 Jan 2022 12:13:36 -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 88AF66091B; Mon, 24 Jan 2022 20:13:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6C900C340E5; Mon, 24 Jan 2022 20:13:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643055215; bh=lDnMZdm1qIoBNi8zGpb9L19ogrWHp8r6Rf4WFn0gvus=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=M+6ESDUo093kBD8l48XEdNZ+ubjOmt5c5gsKiLRtQRj1YvpdD2nlaxZAP29IZSC5x hXVBoihfxJTYYqPd2lkJqw3lcDKgThg+UmmlmlbdOctCAfPW6jueeerT4nvNSQHMDG YNECwBj/1VbKYBocC8LhkSeANrtW5gdWKdobobYc= 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 045/846] media: em28xx: fix control-message timeouts Date: Mon, 24 Jan 2022 19:32:42 +0100 Message-Id: <20220124184102.506700391@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 d9b7e8df3aa9b8c10708aab60e72e79ac08237e4 upstream. USB control-message timeouts are specified in milliseconds and should specifically not vary with CONFIG_HZ. Fixes: a6c2ba283565 ("[PATCH] v4l: 716: support for em28xx board family") Cc: stable@vger.kernel.org # 2.6.16 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/em28xx/em28xx-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/media/usb/em28xx/em28xx-core.c +++ b/drivers/media/usb/em28xx/em28xx-core.c @@ -89,7 +89,7 @@ int em28xx_read_reg_req_len(struct em28x mutex_lock(&dev->ctrl_urb_lock); ret = usb_control_msg(udev, pipe, req, USB_DIR_IN | USB_TYPE_VENDOR | USB_RECIP_DEVICE, - 0x0000, reg, dev->urb_buf, len, HZ); + 0x0000, reg, dev->urb_buf, len, 1000); if (ret < 0) { em28xx_regdbg("(pipe 0x%08x): IN: %02x %02x %02x %02x %02x %02x %02x %02x failed with error %i\n", pipe, @@ -158,7 +158,7 @@ int em28xx_write_regs_req(struct em28xx memcpy(dev->urb_buf, buf, len); ret = usb_control_msg(udev, pipe, req, USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE, - 0x0000, reg, dev->urb_buf, len, HZ); + 0x0000, reg, dev->urb_buf, len, 1000); mutex_unlock(&dev->ctrl_urb_lock); if (ret < 0) {