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: 10138291 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 9D83F60362 for ; Sun, 31 Dec 2017 17:33:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 855732886B for ; Sun, 31 Dec 2017 17:33:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 79FEF2887A; Sun, 31 Dec 2017 17:33:29 +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=-4.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id EF5452886B for ; Sun, 31 Dec 2017 17:33:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=FOIBLTmp8kAVnQAT6wzBWr+B9FrtEFm/jKukviydjrg=; b=nuuwdNhHr2/x5ybLl0c+sa0MYa NLNlMtjYH3yY/sWyiqlgSuIouxdYw+0KGw05y5EUybUU5auaJuobqRoAnxEUJqmGBq+hXZpJL9efQ HGsRXiIDrjkSVzekW9KlCZclHebxb41X8YfyUGU2hKVYS/15hbP5kYlGF2zQNpnrgmlEOwrkmMkU4 4dI+oRUSiRJ14WVWs9SQ6RV+Ui/WMI9KPLVI1giN5Cvi6gl81dGNsFrA0HFB1uslMHJR8sLHNAngy bxNahFXVuU1wHdyg99dEYttosAdC/et3rwGSCWkZRwsQDdh/USvEsD0eb4RIA86pBww5H0FYKo2Tb VlWVqftA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eVhU9-00074b-Md; Sun, 31 Dec 2017 17:33:21 +0000 Received: from mail-lf0-x243.google.com ([2a00:1450:4010:c07::243]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eVhSf-0005zQ-A2 for ath10k@lists.infradead.org; Sun, 31 Dec 2017 17:32:00 +0000 Received: by mail-lf0-x243.google.com with SMTP id y71so1215205lfd.12 for ; Sun, 31 Dec 2017 09:31:44 -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=HO7VrVZG15TCTqa17tqM8HFE2q/+h+hoB5mdle8YCnw75ieIU1OH2hdWa5ZqMNf+c8 v+oV0O3r5RQZ7myq5d8NeYTuV7dDvyLnv0rP1pDgeZsdz35DIIMPYHm38bZ3WrAXj//j qxN6gRz0M5b/upokZ47xNkHjJV8am2M+JQ5SRabhFnUE0/b1w7FlE8CvanZMnXuRnb/n u/iBlK4zVDyFMjnkdnHiXa57FZ83p2fpvcmeq1kYpjT0VpMlGmtt87ACjCXOZvpD8Z7h Qtj2gJHm9rjGCpU/kA5IKHkjuQWi183zMb/VsJ6M/3PHO4sU4kU+Dln1Vi3Rhj2MBvpj m0Rg== X-Gm-Message-State: AKGB3mJnKSeMUUpRfAcRtq73ldqelP9PzDlrH71DUo1VOhYL6e5Tb60O Pdv7o5laN87o6wwZR+fPLzo= 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171231_093149_533402_75433689 X-CRM114-Status: UNSURE ( 8.93 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Erik Stromdahl MIME-Version: 1.0 Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.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;