From patchwork Sun Dec 31 17:29:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Erik Stromdahl X-Patchwork-Id: 10138259 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1905760362 for ; Sun, 31 Dec 2017 17:32:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 014D22886B for ; Sun, 31 Dec 2017 17:32:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EA5412887A; Sun, 31 Dec 2017 17:32:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A27A52886B for ; Sun, 31 Dec 2017 17:32:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751183AbdLaRcM (ORCPT ); Sun, 31 Dec 2017 12:32:12 -0500 Received: from mail-lf0-f68.google.com ([209.85.215.68]:42058 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751081AbdLaRbm (ORCPT ); Sun, 31 Dec 2017 12:31:42 -0500 Received: by mail-lf0-f68.google.com with SMTP id e27so17425905lfb.9 for ; Sun, 31 Dec 2017 09:31:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=h6TivBdRt/Kp5zjgKWrlfIXiu9g6ZjNpFDXDSwPG7sU=; b=sZdkiC8YrzipQ7IKERqvUUmfTAjU/yMZrfSbNjGc8XhNyNucYQ4mC3nlpYFNnM1FU7 8wOyIXik4GG8IRpWC0NtY92iu+cmDOiwADQRABzAt9qivABA4Na34z4eICR72MePu+/I rcqqLeAoB+GtlVmFzPuUptUKZNwRAHucvEMxUsTcxFtN0DhDuRzmgQ6C0fwmUGzcl8IJ 3lVN8udS1QpBe33T8ImyJ07O/yrx5/2BuG11tooKdaZuOF0mMRAGXEoVrwWv3IVpPBTH Dd2jQUL12bHLo2KJf++VFbb7+grqNkDWP55jZbVBTE5gRqCN/94yZPZAg6wPjSwhJV/u JCNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=h6TivBdRt/Kp5zjgKWrlfIXiu9g6ZjNpFDXDSwPG7sU=; b=OYMRRHPm4yTh83Uas4dmYOp12nwRQ/sfvKRlE4kEffi5khHQHwaNoAYJODKaU/z3tM 1DH8wFAKDetwNo7zEOuMQupkvoqGJQ2lgEN/+xV3IYtPSkLTMpSgVhs2x22emO8h7UGa T0BdMjnkfqxoCIZ+TOluRdYIH91+2zl3Sv/EzGkXbbjzqyPmrdxbp40AvZE1EfLr91dd OG2IO2um9YwX2mWfKGABnc6TOpw2uUZBT8b7KRVwxWxvtn7AI4WN4Qe66b7icey4D8cS G9sjLQz52kjLuPDjEjujzThme0jbGySiycLoaYQNa/jLJNyrLR3Tmu8OMtcnrZTzqY4P x7ow== X-Gm-Message-State: AKGB3mLFQ6QEMj1uceMs6TYZP13+siQ6cjcBPB5WJZ4IHfi8Zt4/9jm1 0MYNyfpKjKORbJhqri61a/nRMw== X-Google-Smtp-Source: ACJfBosznwcW5JVfAElwh+B4irljGwv9aC04eleXxBf4zkuAtV+KJWI+KVp0azmOgF4ewPyUxp0bDQ== X-Received: by 10.25.204.69 with SMTP id c66mr23635018lfg.57.1514741500879; Sun, 31 Dec 2017 09:31:40 -0800 (PST) Received: from localhost.localdomain (90-227-62-61-no75.tbcn.telia.com. [90.227.62.61]) by smtp.gmail.com with ESMTPSA id o64sm5048449lfo.53.2017.12.31.09.31.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 31 Dec 2017 09:31:40 -0800 (PST) From: Erik Stromdahl To: kvalo@qca.qualcomm.com, linux-wireless@vger.kernel.org, ath10k@lists.infradead.org Cc: Erik Stromdahl Subject: [RFC v4 08/18] ath10k: various fixes for high latency devices Date: Sun, 31 Dec 2017 18:29:15 +0100 Message-Id: <20171231172925.24014-9-erik.stromdahl@gmail.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20171231172925.24014-1-erik.stromdahl@gmail.com> References: <20171231172925.24014-1-erik.stromdahl@gmail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP A few execution paths are not applicable for high latency devices and can be skipped. Signed-off-by: Erik Stromdahl --- drivers/net/wireless/ath/ath10k/htt_rx.c | 3 ++- drivers/net/wireless/ath/ath10k/txrx.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/htt_rx.c b/drivers/net/wireless/ath/ath10k/htt_rx.c index 7b3d6bf015c7..1432d5b3e9d3 100644 --- a/drivers/net/wireless/ath/ath10k/htt_rx.c +++ b/drivers/net/wireless/ath/ath10k/htt_rx.c @@ -2686,7 +2686,8 @@ bool ath10k_htt_t2h_msg_handler(struct ath10k *ar, struct sk_buff *skb) break; } case HTT_T2H_MSG_TYPE_TX_COMPL_IND: - ath10k_htt_rx_tx_compl_ind(htt->ar, skb); + if (!ar->is_high_latency) + ath10k_htt_rx_tx_compl_ind(htt->ar, skb); break; case HTT_T2H_MSG_TYPE_SEC_IND: { struct ath10k *ar = htt->ar; diff --git a/drivers/net/wireless/ath/ath10k/txrx.c b/drivers/net/wireless/ath/ath10k/txrx.c index febc3eb93fbd..a151abe5e97b 100644 --- a/drivers/net/wireless/ath/ath10k/txrx.c +++ b/drivers/net/wireless/ath/ath10k/txrx.c @@ -90,7 +90,7 @@ int ath10k_txrx_tx_unref(struct ath10k_htt *htt, ath10k_htt_tx_free_msdu_id(htt, tx_done->msdu_id); ath10k_htt_tx_dec_pending(htt); - if (htt->num_pending_tx == 0) + if (!ar->is_high_latency && (htt->num_pending_tx == 0)) wake_up(&htt->empty_tx_wq); spin_unlock_bh(&htt->tx_lock);