From patchwork Sun Dec 31 17:29:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Erik Stromdahl X-Patchwork-Id: 10138301 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 2A5296037D for ; Sun, 31 Dec 2017 17:41:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 16499287C1 for ; Sun, 31 Dec 2017 17:41:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0A54928868; Sun, 31 Dec 2017 17:41:58 +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 B0E98287C1 for ; Sun, 31 Dec 2017 17:41:57 +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=wpT57sZc0M4zEAnglxCQIsnt0FrIfN4IBYvpZl0+bQk=; b=PRA5SNKaKR+0mywHQXSQw+AKTw xIaeCDoiBojWl2EfofwvtxhIBE3ABEfxnYgpnQPqpKwwAFL/waNxLL2L5BqhA1nGfbLkAl0pnKRAa AGGDQ9+j967hBkG/6ClTjwVXYdLlpeIsZRdihAsYl6vNiKhd+0HWGZ1QGMI43YGH6bGqt2SUYd6fl WTZfRyyP2IQ3sp4pAnbOalqF5oNWYOFA6NVeBydd1T92YeSXmapDsqt2SOvhS8kzhyBPFVD8s3x/J CTf5e9qSKUpaR9Butb0LvggFYEYDh4xJ2wZoTsRYTNicQBv5mXvLJnrHYSRbCRYfRUgLuMBK9ZQJ3 IJhX/UDQ==; 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 1eVhcM-0002Od-3f; Sun, 31 Dec 2017 17:41:50 +0000 Received: from mail-lf0-x244.google.com ([2a00:1450:4010:c07::244]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eVhSc-0005ze-EL for ath10k@lists.infradead.org; Sun, 31 Dec 2017 17:31:48 +0000 Received: by mail-lf0-x244.google.com with SMTP id h5so8624822lfj.2 for ; Sun, 31 Dec 2017 09:31:45 -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=vbeiaH4oQhoYuDCoDbQCzDwODuaUDqai1h7aj0l4xF8=; b=YMOoBMW0zBl6l+qOIMdkHsi73xL2lRfstNeG+yuNPQgbeHef5beYspGRXsI6FpcQ1F HekupoSB3e7vRqYb0XJ6Cf6IHndIFZE9fETzpFY0u3bpoI0kxiEa1z3a3CN72bg8GeIC MDEVx1wtPKB1k2MmgeVzT+eyvOEfl3thtSBihq0rB/qE8CI7822pZFsQ01vOT2+diR/r dvFPN27UnWpnCzHZXV2bqskSYzG57EnsQBH8q3ksrLLGxGDaS5aV1WxHW/PEOggL2Qq3 8SAY1gH+6wWpmK+3Q5zb9oytFNp6QnSs/1W3qAwjA1qQJWptgN3mxB6hUoVpWjs01U3Q mBtg== 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=vbeiaH4oQhoYuDCoDbQCzDwODuaUDqai1h7aj0l4xF8=; b=NaRuj0s9BiKb2ZOPT6Hu/pEmaEQjjPmp19pQ6ViGh/D5NxFKjz+MJVfBWVmV9KCJod t1geb/N1j+w2oYa7ox0fEIK7O+T7QyPNXjAt7KRGZZ8JvW4W1b4Fl2wRKJZbPOEq731Q rDM8z6y1miGt8XoNC0KbdjQNCA7qQE2ISNBvrT7qHNRp6h4SBL6Kz86nYD+OmgRv3Aq8 TlqraT1zxFib5HswSz+ApUI03jRQ34PqF7iAlsFEaPaBbKUnhz5OnNo/eH3OSpBDNHkY o3W+M2Bv4ndC4yTZECgBaEaFCc5qXn9SKPqzlfayRWPsStXdkPi0MsV1DXZFWnsUJJcG CSvw== X-Gm-Message-State: AKGB3mIGbMoGlrO0VAmIS7dD2ptT7nbWX0F0vkiRUxJ9lV/NlW0dXGKA uIDnNY5YqnBrXVm6rEIPO/Y= X-Google-Smtp-Source: ACJfBotT0GNv0VyvLM93bzdjCbkkOJGX3O/WzjXzULhP0yHj5MMXiMmDPYzpCNC0Ny6owXqIxTB19g== X-Received: by 10.25.221.6 with SMTP id u6mr22296097lfg.7.1514741503564; Sun, 31 Dec 2017 09:31:43 -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.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 31 Dec 2017 09:31:43 -0800 (PST) From: Erik Stromdahl To: kvalo@qca.qualcomm.com, linux-wireless@vger.kernel.org, ath10k@lists.infradead.org Subject: [RFC v4 11/18] ath10k: add HTT RX HL ops Date: Sun, 31 Dec 2017 18:29:18 +0100 Message-Id: <20171231172925.24014-12-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_093146_604274_F4926488 X-CRM114-Status: UNSURE ( 8.55 ) 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 (empty) HTT RX ops for high latency devices. Signed-off-by: Erik Stromdahl --- drivers/net/wireless/ath/ath10k/htt_rx.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/htt_rx.c b/drivers/net/wireless/ath/ath10k/htt_rx.c index 1432d5b3e9d3..f7d071ca8b76 100644 --- a/drivers/net/wireless/ath/ath10k/htt_rx.c +++ b/drivers/net/wireless/ath/ath10k/htt_rx.c @@ -2917,11 +2917,16 @@ static const struct ath10k_htt_rx_ops htt_rx_ops_64 = { .htt_reset_paddrs_ring = ath10k_htt_reset_paddrs_ring_64, }; +static const struct ath10k_htt_rx_ops htt_rx_ops_hl = { +}; + void ath10k_htt_set_rx_ops(struct ath10k_htt *htt) { struct ath10k *ar = htt->ar; - if (ar->hw_params.target_64bit) + if (ar->is_high_latency) + htt->rx_ops = &htt_rx_ops_hl; + else if (ar->hw_params.target_64bit) htt->rx_ops = &htt_rx_ops_64; else htt->rx_ops = &htt_rx_ops_32;