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: 10445533 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 6F0A560234 for ; Sun, 3 Jun 2018 18:23:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5D6AF28A4D for ; Sun, 3 Jun 2018 18:23:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 51E5428B1C; Sun, 3 Jun 2018 18:23:00 +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=-2.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 0497F28A4D for ; Sun, 3 Jun 2018 18:23:00 +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=Da0UxyaPJw/61MxdU8B7rj5TvxWGop5GkS0Of2/20FM=; b=AbxQelS+lq8x4Lbdy5gwuFCzaE EOxc0p4uStSLwRR0HXK3yKaNPj772nOVuabqmLHbcWzFCrRUrIPLnG78fFeBXZcTPVbFiX7ipn8RR yEZLGk+m3DaxE65lnzifb42jX7Y7hb6JjTWlxyX2IclE+ZQoKqvbV2Y8GeVFLHgzOV4faOzQqlSq7 UOuJ26xK/MYcCFQsy3tEdLPvEFyav7Rv5GuljOvsWVLmr4QvVWyZqPq0E1jb0YGMcrWJoTpf0LD6Z xWR9iJK0QfG4N9SElSyjaiMWJEFsuxxOfReRUkfP1QwT2rIzpnHZ0PtFNP7mEqpLPJRRga8Mjm0E9 pMzBEQsA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fPXeY-0006mv-0I; Sun, 03 Jun 2018 18:22:54 +0000 Received: from mail-lf0-x241.google.com ([2a00:1450:4010:c07::241]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fPXe2-0006Vw-1O for ath10k@lists.infradead.org; Sun, 03 Jun 2018 18:22:25 +0000 Received: by mail-lf0-x241.google.com with SMTP id n15-v6so4484120lfn.10 for ; Sun, 03 Jun 2018 11:22:16 -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=oZlm1t6KI39XvutnrkInK5HLHPE28dZpl9s6vGoJIbFQIdK4uBCoaxBUd/sV6K+Nq1 VTNd6KZcdDb6SUwmRCFtH720dN9G0GKIe9CBo+Wb6VgFz2EECL9oGa2tBvgJtZNKuGek SbT0soRXhp2lbAi/cJOf9JPYYlpDVbLx1CojeRo0Osnha0BysWzSDr2GzzUD0DT2HU6E zOUqneAAEWwGkIPcCNisx8hgKhh2kr5CBmxg7v4sXHj2ikyd7SGKYysA/ChQgasTV4fx 4w1tCCoA29SNjwGPDWKiVaSbasJW/HhtcEllM9JsYJMtJrTdDvUvTJ4ClZhbYGYPuD0e pzPw== X-Gm-Message-State: ALKqPwd5VfIFaJ4herWPsO8KB4xLaT9cDr0dVhkuG6lqmfPKEC8r5ypc ap66kZ59ITIYDvkasCfCXjs= 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180603_112222_090456_E3A21889 X-CRM114-Status: GOOD ( 10.75 ) 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 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;