From patchwork Thu Dec 21 09:00:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Govind Singh X-Patchwork-Id: 10127165 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 E3563603B5 for ; Thu, 21 Dec 2017 09:01:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D66CD298EB for ; Thu, 21 Dec 2017 09:01:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CB8A029B3F; Thu, 21 Dec 2017 09:01:55 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 72275298EB for ; Thu, 21 Dec 2017 09:01:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751997AbdLUJBx (ORCPT ); Thu, 21 Dec 2017 04:01:53 -0500 Received: from sabertooth01.qualcomm.com ([65.197.215.72]:37110 "EHLO sabertooth01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751318AbdLUJBu (ORCPT ); Thu, 21 Dec 2017 04:01:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qti.qualcomm.com; i=@qti.qualcomm.com; q=dns/txt; s=qcdkim; t=1513846910; x=1545382910; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=68N3Ay7KDT7UQS7+PPM1r4IAPsFqG8eSJ90/CsF7M9U=; b=hKIs0xk/mEdtvoFk8mNRpe97RsHRLcnNhmBe91gTo22vJeuFiJFnpD18 nLA8lKO3mGEFPy6rI7/RK98KZgYATRtv/Z8SeRQQi9WBc7kIPWAa9UEU7 hQ+hADwXR+NgA5A1f7aKoyeoCEfAwe5ue8n6kU2oTVA73/ezCoXPJTWWn 4=; X-IronPort-AV: E=Sophos;i="5.45,435,1508828400"; d="scan'208";a="118243812" Received: from ironmsg01-sd.qualcomm.com ([10.53.140.141]) by sabertooth01.qualcomm.com with ESMTP/TLS/AES256-SHA; 21 Dec 2017 01:01:49 -0800 X-MGA-submission: =?us-ascii?q?MDHRjUHlXzlESNOnrwnxxg5CRSJsk3QGhzbsJO?= =?us-ascii?q?F5W5e4GaDbAXFYnCkhcVVtTpQPMe0cz5MxSFVi2Up6QGnIoa4Uv2szcX?= =?us-ascii?q?mkRJOT/8zBSvLXQc+2qTTQKW9KoXXPVYaqwTmOLPz7kmlozJaItyhlhm?= =?us-ascii?q?/V?= Received: from govinds-linux.qualcomm.com ([10.204.116.70]) by ironmsg01-sd.qualcomm.com with ESMTP; 21 Dec 2017 01:01:45 -0800 Received: by govinds-linux.qualcomm.com (Postfix, from userid 399420) id 66EA735DE; Thu, 21 Dec 2017 14:31:44 +0530 (IST) From: Govind Singh To: ath10k@lists.infradead.org Cc: linux-wireless@vger.kernel.org, Rakesh Pillai , Govind Singh Subject: [PATCH 01/10] ath10k: Add hw param for 64-bit address support Date: Thu, 21 Dec 2017 14:30:50 +0530 Message-Id: <1513846859-23639-2-git-send-email-govinds@qti.qualcomm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1513846859-23639-1-git-send-email-govinds@qti.qualcomm.com> References: <1513846859-23639-1-git-send-email-govinds@qti.qualcomm.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 From: Rakesh Pillai WCN3990 target supports 37-bit addressing mode. In order to accommodate extended address support, add hw param to indicate if the target supports addressing above 32-bits. Signed-off-by: Rakesh Pillai Signed-off-by: Govind Singh --- drivers/net/wireless/ath/ath10k/core.c | 13 +++++++++++++ drivers/net/wireless/ath/ath10k/hw.h | 3 +++ 2 files changed, 16 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/core.c b/drivers/net/wireless/ath/ath10k/core.c index ad61e64..031fe00 100644 --- a/drivers/net/wireless/ath/ath10k/core.c +++ b/drivers/net/wireless/ath/ath10k/core.c @@ -78,6 +78,7 @@ .num_peers = TARGET_TLV_NUM_PEERS, .ast_skid_limit = 0x10, .num_wds_entries = 0x20, + .target_64bit = false, }, { .id = QCA9887_HW_1_0_VERSION, @@ -105,6 +106,7 @@ .num_peers = TARGET_TLV_NUM_PEERS, .ast_skid_limit = 0x10, .num_wds_entries = 0x20, + .target_64bit = false, }, { .id = QCA6174_HW_2_1_VERSION, @@ -131,6 +133,7 @@ .num_peers = TARGET_TLV_NUM_PEERS, .ast_skid_limit = 0x10, .num_wds_entries = 0x20, + .target_64bit = false, }, { .id = QCA6174_HW_2_1_VERSION, @@ -157,6 +160,7 @@ .num_peers = TARGET_TLV_NUM_PEERS, .ast_skid_limit = 0x10, .num_wds_entries = 0x20, + .target_64bit = false, }, { .id = QCA6174_HW_3_0_VERSION, @@ -183,6 +187,7 @@ .num_peers = TARGET_TLV_NUM_PEERS, .ast_skid_limit = 0x10, .num_wds_entries = 0x20, + .target_64bit = false, }, { .id = QCA6174_HW_3_2_VERSION, @@ -212,6 +217,7 @@ .num_peers = TARGET_TLV_NUM_PEERS, .ast_skid_limit = 0x10, .num_wds_entries = 0x20, + .target_64bit = false, }, { .id = QCA99X0_HW_2_0_DEV_VERSION, @@ -244,6 +250,7 @@ .num_peers = TARGET_TLV_NUM_PEERS, .ast_skid_limit = 0x10, .num_wds_entries = 0x20, + .target_64bit = false, }, { .id = QCA9984_HW_1_0_DEV_VERSION, @@ -281,6 +288,7 @@ .num_peers = TARGET_TLV_NUM_PEERS, .ast_skid_limit = 0x10, .num_wds_entries = 0x20, + .target_64bit = false, }, { .id = QCA9888_HW_2_0_DEV_VERSION, @@ -317,6 +325,7 @@ .num_peers = TARGET_TLV_NUM_PEERS, .ast_skid_limit = 0x10, .num_wds_entries = 0x20, + .target_64bit = false, }, { .id = QCA9377_HW_1_0_DEV_VERSION, @@ -343,6 +352,7 @@ .num_peers = TARGET_TLV_NUM_PEERS, .ast_skid_limit = 0x10, .num_wds_entries = 0x20, + .target_64bit = false, }, { .id = QCA9377_HW_1_1_DEV_VERSION, @@ -371,6 +381,7 @@ .num_peers = TARGET_TLV_NUM_PEERS, .ast_skid_limit = 0x10, .num_wds_entries = 0x20, + .target_64bit = false, }, { .id = QCA4019_HW_1_0_DEV_VERSION, @@ -404,6 +415,7 @@ .num_peers = TARGET_TLV_NUM_PEERS, .ast_skid_limit = 0x10, .num_wds_entries = 0x20, + .target_64bit = false, }, { .id = WCN3990_HW_1_0_DEV_VERSION, @@ -422,6 +434,7 @@ .num_peers = TARGET_HL_10_TLV_NUM_PEERS, .ast_skid_limit = TARGET_HL_10_TLV_AST_SKID_LIMIT, .num_wds_entries = TARGET_HL_10_TLV_NUM_WDS_ENTRIES, + .target_64bit = true, }, }; diff --git a/drivers/net/wireless/ath/ath10k/hw.h b/drivers/net/wireless/ath/ath10k/hw.h index 90ad39b..5d243f3 100644 --- a/drivers/net/wireless/ath/ath10k/hw.h +++ b/drivers/net/wireless/ath/ath10k/hw.h @@ -561,6 +561,9 @@ struct ath10k_hw_params { u32 num_peers; u32 ast_skid_limit; u32 num_wds_entries; + + /* Targets supporting physical addressing capability above 32-bits */ + bool target_64bit; }; struct htt_rx_desc;