Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6A466C433F5 for ; Wed, 24 Nov 2021 12:57:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346433AbhKXNAJ (ORCPT ); Wed, 24 Nov 2021 08:00:09 -0500 Received: from mail.kernel.org ([198.145.29.99]:60974 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344006AbhKXM5M (ORCPT ); Wed, 24 Nov 2021 07:57:12 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 083066154B; Wed, 24 Nov 2021 12:32:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1637757174; bh=zo6ates65FuopZK+2whayNP+CORPcvZzYGcw1Cjm8+M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yIY6KsgWPIajKuiV4eAfJZjfj6Lykq2G2T/iSHNyZbw82ZqDaxCDSDvtW/jkAR5N4 MhgylZg++kvwlcEGGhIZ69dTd6IZRU7VShix5ncltM3uDNFuiFHa1O/g+p4bOr7vmz q/VuifF4ABi25gsMBXH2M8reCgCEnUcreh6DZZCo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Erik Stromdahl , Johan Hovold , Kalle Valo Subject: [PATCH 4.19 049/323] ath10k: fix control-message timeout Date: Wed, 24 Nov 2021 12:53:59 +0100 Message-Id: <20211124115720.532844126@linuxfoundation.org> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20211124115718.822024889@linuxfoundation.org> References: <20211124115718.822024889@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 5286132324230168d3fab6ffc16bfd7de85bdfb4 upstream. USB control-message timeouts are specified in milliseconds and should specifically not vary with CONFIG_HZ. Fixes: 4db66499df91 ("ath10k: add initial USB support") Cc: stable@vger.kernel.org # 4.14 Cc: Erik Stromdahl Signed-off-by: Johan Hovold Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/20211025120522.6045-2-johan@kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/net/wireless/ath/ath10k/usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/wireless/ath/ath10k/usb.c +++ b/drivers/net/wireless/ath/ath10k/usb.c @@ -536,7 +536,7 @@ static int ath10k_usb_submit_ctrl_in(str req, USB_DIR_IN | USB_TYPE_VENDOR | USB_RECIP_DEVICE, value, index, buf, - size, 2 * HZ); + size, 2000); if (ret < 0) { ath10k_warn(ar, "Failed to read usb control message: %d\n",