From patchwork Sun Dec 31 17:29:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Erik Stromdahl X-Patchwork-Id: 10138255 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 3FEF760362 for ; Sun, 31 Dec 2017 17:32:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 281562886B for ; Sun, 31 Dec 2017 17:32:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1D42D2887A; Sun, 31 Dec 2017 17:32:08 +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 BB4C52886B for ; Sun, 31 Dec 2017 17:32:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751169AbdLaRcG (ORCPT ); Sun, 31 Dec 2017 12:32:06 -0500 Received: from mail-lf0-f67.google.com ([209.85.215.67]:37765 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751108AbdLaRbo (ORCPT ); Sun, 31 Dec 2017 12:31:44 -0500 Received: by mail-lf0-f67.google.com with SMTP id f3so16110733lfe.4 for ; Sun, 31 Dec 2017 09:31:43 -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=IfuY28vs5dwMl1QHftslVDVqZWdIi6cNIDTkchiPdZw=; b=mbXfFkVXCQSj6yCmVKhc/i8LHfke/85mnmKy5zgP1NF8PHjD6kax0uuv8cgeGFthDd ikEWVcbkH9twsoc35ux/yat/QtdA8B3DI4w8FnPL/kAMGE7bk6RjnVun4dkRnngivcI5 Pe+V/X14eLjbU8VHx0klIr1V6VZ+fLQQyTjmuyNJGRNM/qXu4CePMJY/kAmVsgGwTNH9 U3EHrCuG7hTaJ8b8HPi6e7CiYHVIdOQ+Uw0IqPn0DyUHPlrU20BjT09kaF1HwdgZHK1E q9D1PnTKTdoAT6EqxwfZkXDWLL49rW/c/GGUW20IwHq/LL1Mdg3Hx3+wx+WMMPqQoYWN srXA== 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=IfuY28vs5dwMl1QHftslVDVqZWdIi6cNIDTkchiPdZw=; b=hurRvATiDdlopWDDflFDXUhWv/oboFoj4iwWCYaZCivzwGKjWXXS8sVM170PFYhEvT 5rsSak1eMKt/Cy8QKGHZIq6AjKAcgdBNkF7ihZYHkjJIA2nGKOWf+BE+UwNi3VkxbEjM LchQF+cUuN5OwIitW8ZBdreSHmySHH13WsmC69swLzAD+P7pk0mupFqiQUyyqYxdcSOJ D9GrtxALkdeIRm3fJAKBRuOlYeeq6WBnX4FqyDLHDdUfVKziRLloDd+CDch6YMuMJCJ0 sEfspZ+1lWJgilaXaALj/CUFR0deTzAmkx/zU0r8lDxGhIXfMV5oJEuh8nqYIkPY66Wj Zmgw== X-Gm-Message-State: AKGB3mLTOgvo71lA1/gMR+FsKy53Db6QjQVQxCjvjzqymCwqWfyjy7My 0AmXqiUta07wMcnHvxUTqbU= X-Google-Smtp-Source: ACJfBovHZxIEd0EobBQ9OLVdsIbA99Vztu5XyWBWDHrLO7aR/vZcaX4zDKtoTzSX8Pf/adtrz3ZyxQ== X-Received: by 10.25.165.76 with SMTP id o73mr2629937lfe.91.1514741502683; Sun, 31 Dec 2017 09:31:42 -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.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 31 Dec 2017 09:31:42 -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 10/18] ath10k: add HTT TX HL ops Date: Sun, 31 Dec 2017 18:29:17 +0100 Message-Id: <20171231172925.24014-11-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 Initial HTT TX ops for high latency devices. Signed-off-by: Erik Stromdahl --- drivers/net/wireless/ath/ath10k/htt_tx.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/htt_tx.c b/drivers/net/wireless/ath/ath10k/htt_tx.c index 4d0bfb47d162..321f131e417d 100644 --- a/drivers/net/wireless/ath/ath10k/htt_tx.c +++ b/drivers/net/wireless/ath/ath10k/htt_tx.c @@ -1565,11 +1565,17 @@ static const struct ath10k_htt_tx_ops htt_tx_ops_64 = { .htt_free_txbuff = ath10k_htt_tx_free_cont_txbuf_64, }; +static const struct ath10k_htt_tx_ops htt_tx_ops_hl = { + .htt_send_frag_desc_bank_cfg = ath10k_htt_send_frag_desc_bank_cfg_32, +}; + void ath10k_htt_set_tx_ops(struct ath10k_htt *htt) { struct ath10k *ar = htt->ar; - if (ar->hw_params.target_64bit) + if (ar->is_high_latency) + htt->tx_ops = &htt_tx_ops_hl; + else if (ar->hw_params.target_64bit) htt->tx_ops = &htt_tx_ops_64; else htt->tx_ops = &htt_tx_ops_32;