Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp4484375ybx; Mon, 4 Nov 2019 14:11:41 -0800 (PST) X-Google-Smtp-Source: APXvYqyxyw1UjJHeOsYMtMM5AoVcjCLjy/HibpcF+IeYVdxniDPQWXGpbYrl8S3LgslWZDqoGTXI X-Received: by 2002:a17:906:4697:: with SMTP id a23mr8638531ejr.322.1572905501658; Mon, 04 Nov 2019 14:11:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572905501; cv=none; d=google.com; s=arc-20160816; b=sCVMPMsQtakyJ/1vWaM+3AHUuaZiudoPET+g11bp9hUlYHD3ejmQB6ojD3nZOaqF79 RLdjFUpoRO/GPfptJ714i5BjwaFUWHSpauJRR9A3y4eaIg6Rn62x6tnPbDnR7MzaSS7X O/kHPS2n55DmnuAGJYzpPhYUzC7UHMsZhZjsk9tziSrkbSbYujF4+xtS4/CRjK/0HYR5 0aF92o05laWbMcjdh++p5CzeSQZw1M2biKc0/MvU89Q/XkZwy/41Wr29tYBw5HFgAjfG yBJtQEQmNTuWoMjYJbZPzhiXZE/O99XrZttIvLnRSFiRkAn3Kw8ZJZLljuDG4oSTalX0 noTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=zAE1snna7bRwwSQ1tmVq8MHeDGQGNh96c3UxXxn/vuY=; b=H6JRqvxmBzaQQdjrPhO8JPMy0UqXw0ZP8A3gABzTM5VXuasKSZU6uhQtd8sk0ZDmmE tbmAkIja48IH29oagILR6XqzJfFa7IWKtFTBHf+Ny9W5flS0ga/DphbwVMS1AXkwsENn strKfi4Ng2jN4zryvEtV8wU4efEXgQt8gzwccJLc2nmAyeR6X1xrMtmvJ8nZ0ewqPv+C 3DjXdTioz7i/8VmICZCt1hx8aTjn6CCEqYEN1wz9nAzLn1IX+42KoiFnhPcGPfpy3T0a wwuB9gWYWsDLy7mnHS5Eyuic8mwrC5KpJM54D8uGHyLaesaRmboMHnB/wGo4k+eaVPTe nfCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Kym6v6ID; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b15si12808597ejd.66.2019.11.04.14.11.18; Mon, 04 Nov 2019 14:11:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Kym6v6ID; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388838AbfKDWIa (ORCPT + 99 others); Mon, 4 Nov 2019 17:08:30 -0500 Received: from mail.kernel.org ([198.145.29.99]:41360 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390219AbfKDWI2 (ORCPT ); Mon, 4 Nov 2019 17:08:28 -0500 Received: from localhost (6.204-14-84.ripe.coltfrance.com [84.14.204.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 45BC220650; Mon, 4 Nov 2019 22:08:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1572905306; bh=o9zWjotG85ira+gny4NLKdvv6viLLW0sHqAeRx+kY0o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Kym6v6IDUaDOaRlfuH/tPxE/M8Xe/HJr42DKNs1xKzXjpjzl9rX8DIw65Xszgw/aC KeVu1Ea9h8X6Y2s8ZxEhBchdh4tVDVCeVN3132Eo9yah87ZNuFfumvXICR0AEpG0CM I0zfesOthd8KERins5rzbftPLY8jkRJIy/YFxdVo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Miaoqing Pan , Kalle Valo Subject: [PATCH 5.3 101/163] ath10k: fix latency issue for QCA988x Date: Mon, 4 Nov 2019 22:44:51 +0100 Message-Id: <20191104212147.383576170@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191104212140.046021995@linuxfoundation.org> References: <20191104212140.046021995@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Miaoqing Pan commit d79749f7716d9dc32fa2d5075f6ec29aac63c76d upstream. (kvalo: cherry picked from commit 1340cc631bd00431e2f174525c971f119df9efa1 in wireless-drivers-next to wireless-drivers as this a frequently reported regression) Bad latency is found on QCA988x, the issue was introduced by commit 4504f0e5b571 ("ath10k: sdio: workaround firmware UART pin configuration bug"). If uart_pin_workaround is false, this change will set uart pin even if uart_print is false. Tested HW: QCA9880 Tested FW: 10.2.4-1.0-00037 Fixes: 4504f0e5b571 ("ath10k: sdio: workaround firmware UART pin configuration bug") Signed-off-by: Miaoqing Pan Signed-off-by: Kalle Valo Signed-off-by: Greg Kroah-Hartman --- drivers/net/wireless/ath/ath10k/core.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) --- a/drivers/net/wireless/ath/ath10k/core.c +++ b/drivers/net/wireless/ath/ath10k/core.c @@ -2118,12 +2118,15 @@ static int ath10k_init_uart(struct ath10 return ret; } - if (!uart_print && ar->hw_params.uart_pin_workaround) { - ret = ath10k_bmi_write32(ar, hi_dbg_uart_txpin, - ar->hw_params.uart_pin); - if (ret) { - ath10k_warn(ar, "failed to set UART TX pin: %d", ret); - return ret; + if (!uart_print) { + if (ar->hw_params.uart_pin_workaround) { + ret = ath10k_bmi_write32(ar, hi_dbg_uart_txpin, + ar->hw_params.uart_pin); + if (ret) { + ath10k_warn(ar, "failed to set UART TX pin: %d", + ret); + return ret; + } } return 0;