From patchwork Sun Jun 3 18:20:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Erik Stromdahl X-Patchwork-Id: 10445515 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 D343A601BC for ; Sun, 3 Jun 2018 18:22:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C335928A4D for ; Sun, 3 Jun 2018 18:22:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B7C6A28B1C; Sun, 3 Jun 2018 18:22:26 +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 5E9F228A4D for ; Sun, 3 Jun 2018 18:22:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751394AbeFCSWU (ORCPT ); Sun, 3 Jun 2018 14:22:20 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:39325 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751254AbeFCSWR (ORCPT ); Sun, 3 Jun 2018 14:22:17 -0400 Received: by mail-lf0-f68.google.com with SMTP id t134-v6so21772592lff.6 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=Sjia/PFLY7aj1AyBEW+eKhf5/R78DXIpPgL2yhMSMhw=; b=Hz1zSpHga/F1l3pMuOIDyqt5mvTdNyeQ+vwRqs09Jdcp+U3/Kt/3KX32OuopUE22ds uk/EbPN5gbwE5Bsq7aYfLvVlrwGWUwE1OseHlmZJK6jedsobnmYqt5gLPD9fx1NpyQAh PDAopM6DJ3T2jFkMZ0aHF0MeqZgGVRzO0wdCXnmWKtcG7IEW+WRrPlzkpI00/SQIOlZU 9jN4RQas1e49yYakO5zwIS2+g8IY/PkTQyk9f9uKmEgK6kX9aOGB2E3tx1XMzrv0EupT 0pXiZew71BXx/uXov5UO2O0pVsobGGmNenLphgdID6ECOVttLCGixQrqfyOAzDYYCHqP RDGA== 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=Sjia/PFLY7aj1AyBEW+eKhf5/R78DXIpPgL2yhMSMhw=; b=m7qT0/juoCAAtBElJ+Qk6WyWvUz2z28prNIsbIu67uf/IMCVV4315ykxbZ99uz/cQV ykLozo0B67jceV2sb4295Czfq2cB5kHfNeswmcUX2Le60fH0RpR7haJMVwaJFC6+1Q+C TlM0jSB+p8ToaI40SQhaE9f8ohffM8XmWgRmzu3EL2z7NRwrE9BquV7ltV+7hLsM7l60 6UlSO+2XWKI5tpzdBHKBp/mN/LqCeU6enw0wxQPGG0Ul0qUOy4Ow3bNWuG/eD9tvtJuk DZ9YwB3qi89lxvI43w8QA6tYG0RZXzEjurPe/oP5OMR0XEtS++W89Bw89odsz9PcUjRh lRUg== X-Gm-Message-State: ALKqPwf+nx680CfepXPF1X8OVX6ZOyeb6rNNw7QhuWx/zR2tbZvocIFW 2kujjrbnEcaRXRRBxh/qQTI= X-Google-Smtp-Source: ADUXVKK75Lj7led20k3kjCxBiQp3yiRq4Pb9UeW4hQVZJiutDNPOXppOWBPl/jp7FPK+lpRBy9SafA== X-Received: by 2002:a19:dbc3:: with SMTP id t64-v6mr10518394lfi.123.1528050135912; 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.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 03 Jun 2018 11:22:15 -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 08/12] ath10k: add HTT RX HL ops Date: Sun, 3 Jun 2018 20:20:25 +0200 Message-Id: <20180603182029.8914-9-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 (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 bd23f6940488..ae90ddfdb466 100644 --- a/drivers/net/wireless/ath/ath10k/htt_rx.c +++ b/drivers/net/wireless/ath/ath10k/htt_rx.c @@ -2983,11 +2983,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->dev_type == ATH10K_DEV_TYPE_HL) + 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;