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: 10445537 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 0205160234 for ; Sun, 3 Jun 2018 18:23:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E2EFF23B24 for ; Sun, 3 Jun 2018 18:23:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D57B127E63; Sun, 3 Jun 2018 18:23:20 +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 7735B23B24 for ; Sun, 3 Jun 2018 18:23:20 +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=jMF83u5VpkYYUKRzXp7SPVSxac2g1UtudyN3xtHxhx4=; b=XSxAwQ7bHCnDNpU8jTwtOyp+Mg TsxnHxa2beZl1o1aAJbyzUakzIugrzWlCDZbQP5W9Oxri8kbvXSj27qB5oyPuJZ95JksO2hsrwTzo WRb6DwfX+5G+LDY2JJE5FyrO8vDt5fEqMZckgjZxuQU7m80PScgP2ZIm5+AH7+jznbfRl5incxu9H 5Lm9RAeWJ1afMK/X3jfwt+LegDeAnVtD7ZyWzAgl6M4qy4bmVkf+PXsuSm15T8XUr0sDh64nlCBPT pWVRVKp0gs71lZLnV0gPAJZmKo9a8BPNy7YnKw78ufaSPrmhI+VROxRwCvAIe6s2J41hWdWVErAGc PcrzvFJw==; 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 1fPXer-0006z8-P4; Sun, 03 Jun 2018 18:23:13 +0000 Received: from mail-lf0-x243.google.com ([2a00:1450:4010:c07::243]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fPXe2-0006WD-9o for ath10k@lists.infradead.org; Sun, 03 Jun 2018 18:22:29 +0000 Received: by mail-lf0-x243.google.com with SMTP id 36-v6so19834590lfr.11 for ; Sun, 03 Jun 2018 11:22:17 -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=Gxe1MKFRb7A7llSl6v1v+2RrsZZKHAPTfMa1v5BTuMaA0zvSW4wIVqYsoOrrobz/OU 3iPXz/Kf9Ql2nCMC4bwENb7H3eKyBA0pY7D5UrZMr4CQmxu93l4w++j7sTfNCvSNiHf0 P+a9NXMOPUvZyGfHbXdr+4YRq3hRvIm37vScfuPK2Ke6afkM1vdzM7e+3y0IHuvYFwka 060T9KJCJzE1wU0jn6syutF3hrSyB2nS190u6jQXitFth9c6xGw004kR2QAghadEXjbO KvOyYs2k0A0065E0fcP+WQzoGFxgQHNx7sV/dV/BXh91yRMJDSBT046hBblDMZFXN1HH cGWw== X-Gm-Message-State: ALKqPwfko2FFW2PYxGinI/+LpIKjSJkW1wxiRrzXR8Nzjqb5/WNW5LBH vbpbsegF2o2fohWpSl0LnFI= 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180603_112222_360393_C22EC2C7 X-CRM114-Status: GOOD ( 10.49 ) 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 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;