Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2502379pxb; Sun, 16 Jan 2022 22:57:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJwgFT8bqhER6A6E2MgCGlECoYlBEl6OmdvoML9Lz2clKZY4toZWbm8Yar8fN1Bm9CXswLGk X-Received: by 2002:a17:902:8a94:b0:14a:bb95:6a64 with SMTP id p20-20020a1709028a9400b0014abb956a64mr3527550plo.115.1642402676229; Sun, 16 Jan 2022 22:57:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642402676; cv=none; d=google.com; s=arc-20160816; b=lRu+Iia/Zew8EveOtDpxILnIoFMjmcAc5f0Rba0CM2/1pKeIJn3quegV1JATBuPSR1 xb2k8VQa0usIOs1H1WHNGhGAkIhZXEjdFh1pDvTvUW0s4XARj3LQrc0ecieHsJHP7Txa uK/M74CMWUz6wKt+5ceKohOcmQLUhfO5ah0odoqI29yISUdz8xhaeodJzNXyUyxrFwfP sSDuHvwnEvxdbbGAVQuquV5my7VAVAY0Bv867O6CXBaEM3YqDv6zC4Rvj8+ZZ+6ivc0a Xc756CsJy7+7OimJUAcR9ndkn0pcfcYqZ0t9ldOuznHszEaejPfhdOOJ6f5UuVF8JGZ1 aRBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=3NjfF2LULZt19cE12E79NOtg953hyJb0IoF3VJkivU8=; b=ypdYL/KqNEHQ1Q3gE8BN2RvcznLNngCpGt3b8p2yHbIjIf+fwgCF1u1tMjkofnyi5B 6/60EFWrKxhXW97EQ1ra+YpYXAJxrer4hg1LKWOMkwQGGbu4dAJRvdnrbZzqJHpoAJks t5nmiyKdIrayPgZjXBbjexR1B9uKRIDqcYK10v72nReOQ98APyswTdtk8VDPKOwWixk+ ucNNX+zfh1yeItjzF6faOXG0nzG+piea0BajwrCt4ApadWkq8v9MEAJJBMiDTZL1LEKb B0XmHqRQasuW+VZgeOc2GZM/LI9SbVR1Dr4bCmSeLHVzH7PJJKC/0e0qSdgWP+YuW7lo PS1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=uS1PhPoQ; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x186si12771680pgd.113.2022.01.16.22.57.48; Sun, 16 Jan 2022 22:57:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=uS1PhPoQ; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235093AbiAPMr6 (ORCPT + 70 others); Sun, 16 Jan 2022 07:47:58 -0500 Received: from alexa-out.qualcomm.com ([129.46.98.28]:6149 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235096AbiAPMrw (ORCPT ); Sun, 16 Jan 2022 07:47:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1642337272; x=1673873272; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=3NjfF2LULZt19cE12E79NOtg953hyJb0IoF3VJkivU8=; b=uS1PhPoQaO4vM6tZtrf2APyLHzeYalV9euiE1aXZyM3/0Alsk5SvzsKW YZJ9hiuMlxNZGNt2f0M1gbQZZ7DOp/79wRIu5defEEJwH+ZtG3HTrsxS7 TklQjv3uvkqcAgq41joC32+6eyq3meYvtz4xHrK93VycmeV8gLqSdok9h A=; Received: from ironmsg09-lv.qualcomm.com ([10.47.202.153]) by alexa-out.qualcomm.com with ESMTP; 16 Jan 2022 04:47:50 -0800 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg09-lv.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jan 2022 04:47:49 -0800 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.19; Sun, 16 Jan 2022 04:47:48 -0800 Received: from mpubbise-linux.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.19; Sun, 16 Jan 2022 04:47:45 -0800 From: Manikanta Pubbisetty To: CC: , , , Manikanta Pubbisetty Subject: [PATCH v2 07/19] ath11k: Add bus params for WCN6750 Date: Sun, 16 Jan 2022 18:17:03 +0530 Message-ID: <1642337235-8618-8-git-send-email-quic_mpubbise@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1642337235-8618-1-git-send-email-quic_mpubbise@quicinc.com> References: <1642337235-8618-1-git-send-email-quic_mpubbise@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org WCN6750 is a PCIe based solution that is attached to and enumerated by the WPSS (Wireless Processor SubSystem) Q6 processor. Though it is a PCIe device, since it is not attached to APSS processor (Application Processor SubSystem), APSS will be unaware of such a decice and hence it is registered to the APSS processor as a platform device(AHB). Because of this hybrid nature, it is called as a hybrid bus device. A new variable is defined in bus params to indicate the hybrid nature. Add bus params for WCN6750. Tested-on: WCN6750 hw1.0 AHB WLAN.MSL.1.0.1-00573-QCAMSLSWPLZ-1 Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-01720.1-QCAHSPSWPL_V1_V2_SILICONZ_LITE-1 Tested-on: QCN9074 hw1.0 PCI WLAN.HK.2.5.0.1-01100-QCAHKSWPL_SILICONZ-1 Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.4.0.1-00192-QCAHKSWPL_SILICONZ-1 Signed-off-by: Manikanta Pubbisetty --- drivers/net/wireless/ath/ath11k/ahb.c | 9 +++++++++ drivers/net/wireless/ath/ath11k/ahb.h | 2 ++ drivers/net/wireless/ath/ath11k/core.h | 1 + 3 files changed, 12 insertions(+) diff --git a/drivers/net/wireless/ath/ath11k/ahb.c b/drivers/net/wireless/ath/ath11k/ahb.c index 3fb0aa0..6167d4f 100644 --- a/drivers/net/wireless/ath/ath11k/ahb.c +++ b/drivers/net/wireless/ath/ath11k/ahb.c @@ -1,6 +1,7 @@ // SPDX-License-Identifier: BSD-3-Clause-Clear /* * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved. + * Copyright (c) 2021, Qualcomm Innovation Center, Inc. All rights reserved. */ #include @@ -35,6 +36,14 @@ static const struct ath11k_bus_params ath11k_ahb_bus_params = { .fixed_mem_region = true, }; +const struct ath11k_bus_params ath11k_hybrid_bus_params = { + .mhi_support = false, + .m3_fw_support = false, + .fixed_bdf_addr = false, + .fixed_mem_region = false, + .hybrid_bus_type = true, +}; + #define ATH11K_IRQ_CE0_OFFSET 4 static const char *irq_name[ATH11K_IRQ_NUM_MAX] = { diff --git a/drivers/net/wireless/ath/ath11k/ahb.h b/drivers/net/wireless/ath/ath11k/ahb.h index 51e6e4a..a97f2dd 100644 --- a/drivers/net/wireless/ath/ath11k/ahb.h +++ b/drivers/net/wireless/ath/ath11k/ahb.h @@ -1,6 +1,7 @@ /* SPDX-License-Identifier: BSD-3-Clause-Clear */ /* * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved. + * Copyright (c) 2021, Qualcomm Innovation Center, Inc. All rights reserved. */ #ifndef ATH11K_AHB_H #define ATH11K_AHB_H @@ -9,6 +10,7 @@ #define ATH11K_AHB_RECOVERY_TIMEOUT (3 * HZ) struct ath11k_base; +extern const struct ath11k_bus_params ath11k_hybrid_bus_params; struct ath11k_ahb { struct rproc *tgt_rproc; diff --git a/drivers/net/wireless/ath/ath11k/core.h b/drivers/net/wireless/ath/ath11k/core.h index 803d977..c6cd2de 100644 --- a/drivers/net/wireless/ath/ath11k/core.h +++ b/drivers/net/wireless/ath/ath11k/core.h @@ -654,6 +654,7 @@ struct ath11k_bus_params { bool fixed_bdf_addr; bool fixed_mem_region; bool static_window_map; + bool hybrid_bus_type; struct { void (*wakeup)(struct ath11k_base *ab); void (*release)(struct ath11k_base *ab); -- 2.7.4