From patchwork Sun Jun 3 18:20:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Erik Stromdahl X-Patchwork-Id: 10445527 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 B46C060234 for ; Sun, 3 Jun 2018 18:22:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A4ADD28A4D for ; Sun, 3 Jun 2018 18:22:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9987A28B1C; Sun, 3 Jun 2018 18:22:38 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, MAILING_LIST_MULTI, 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 4351928A4D for ; Sun, 3 Jun 2018 18:22:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751444AbeFCSWg (ORCPT ); Sun, 3 Jun 2018 14:22:36 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:37986 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751147AbeFCSWQ (ORCPT ); Sun, 3 Jun 2018 14:22:16 -0400 Received: by mail-lf0-f68.google.com with SMTP id i83-v6so9617582lfh.5 for ; Sun, 03 Jun 2018 11:22:15 -0700 (PDT) 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=gynwcOQg2SF4SavljHQlEKq+Y/qea3G8GiwFMI8LS20=; b=anRnye/X5uP+W2qZ8tcWaUwigDKkByOQg+IoNaEZeDa0LNncho5kMfnHO7r6h2wPzp Pvx1HggfUoyCdX1ZXEBjjfJW44qDvLmIC9x38wzpiurIpN8m9Jq71Essby814wnqnezv fsc7Tc4nrSspkXTCeQT61BRsNFknJ1rq4w6MUpeHlZFqUS2Bl77uqJdO+gAnHyS1UFqZ aplOMw7lOmKYrH/TwOD41zIY5yaWrXvMQCz/M9MVNAGXNk5H0ST/Y3bbGlTFbfTdCeoK QnEe4SCZREYzOQYlgru3tqdyezlJLq205frXPtWkfLObp1olUIvuRwDTGywZq8C8rZUR FtbQ== 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=gynwcOQg2SF4SavljHQlEKq+Y/qea3G8GiwFMI8LS20=; b=F9b0vT1qjpP3plH6MX65oCgH8h+mBUU0CLTdOfyr6CG2xg+vVGjBPdqvlH9z+8w0JG eyAKB5TJvekXQdCVzA4Q0vTfqWngGl4P3O5ONo5QZrkUWqgFWtRlr/wu4qnwgtYE/oNb GVbBILXmllty+CPplZRd3um5byVoXDzgjfAJK9W0RpUT8LZrPQEi35rmweVpnOpzxpYc IxQYCU3gbkfm9f3Hdd0QtN6NPcI23RYsaPb4ivX04PST7Gdhfw9JdmHEWYyZ+UOLBKx2 VHY5P9uzuN8pgM6waC21H9hV+Pj7RUm112wnoc9+6GDzfWKG6s9C0up1mVN3vZWlXnb/ 1UoA== X-Gm-Message-State: ALKqPwfFk7k6kmfEB2Hjqx2jdBN4Ehe8I9Acv8j2XAlTqVwoG95u/cSG XIUw6NgORu3I9PbqbFjikLI= X-Google-Smtp-Source: ADUXVKJNlHZYO7s2GWnCRDbF4ymAgipnE/nBsza5r/NLEOB2iLn1imx3mA++QpLEOVY/yzHWFS4aQQ== X-Received: by 2002:a2e:200f:: with SMTP id g15-v6mr9995293ljg.63.1528050135001; Sun, 03 Jun 2018 11:22:15 -0700 (PDT) Received: from localhost.localdomain (90-227-62-61-no75.tbcn.telia.com. [90.227.62.61]) by smtp.gmail.com with ESMTPSA id l200-v6sm4980562lfe.77.2018.06.03.11.22.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 03 Jun 2018 11:22:14 -0700 (PDT) From: Erik Stromdahl To: kvalo@qca.qualcomm.com, linux-wireless@vger.kernel.org, ath10k@lists.infradead.org Cc: Erik Stromdahl Subject: [RFC v5 07/12] ath10k: add HTT TX HL ops Date: Sun, 3 Jun 2018 20:20:24 +0200 Message-Id: <20180603182029.8914-8-erik.stromdahl@gmail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180603182029.8914-1-erik.stromdahl@gmail.com> References: <20180603182029.8914-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 79a8eca46e88..7c7e434fcde5 100644 --- a/drivers/net/wireless/ath/ath10k/htt_tx.c +++ b/drivers/net/wireless/ath/ath10k/htt_tx.c @@ -1568,11 +1568,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->dev_type == ATH10K_DEV_TYPE_HL) + 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;