Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1459719iob; Fri, 29 Apr 2022 05:57:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEI2hVsAyW6PfnuxMB0bdqSZoyIsBBVFwe3vhAljgZO7xrKmptX4yUqz0Ko1frZofu1zDH X-Received: by 2002:a17:902:e5cb:b0:15d:52ec:a2a3 with SMTP id u11-20020a170902e5cb00b0015d52eca2a3mr13060577plf.74.1651237062100; Fri, 29 Apr 2022 05:57:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651237062; cv=none; d=google.com; s=arc-20160816; b=NlD7ATooX2SdLohBv/JdvSzXEyfkfhSu5Eziz8yem+PZJcxzL7Qqi3iDNwzytZ3sjE YAniOmrq4qOjVqPwMMY9eZQLBZbcLK1pfawohWfv7OvBHQkD0E/KsSSeqFAJCHhrDdUr WPhbEDlYWIkKaXxkilM4lOngp8a+Gs+VUwoixRtaeSPj9trtsVjGJSDWLmSsKhNgKdFU 5VApEGqXUWMZ9j//7Pu17Al97HqgdiGvbEQs3MvW3T7Z9fnlVcjmAoI9MpPw1QD71K87 ZE1GSJ+W0tAJOGTBI1+k779wvxj+W6n4KSY8ElzyvIHXYmctkf/X0ssaMA2vEyARJYEE hrjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=6AnMi6rcyd46qsj6vr46u5UH3C/fpzJ3UWxkrsYtQ10=; b=C4rUgv1mXhsP3ISP71UNcBAvSFfnSDiTTxpdtOoV/KeCmyB+NENJeTojSJJ/XrSbQB bUUNosCaIT/i3onNfTVPuf+UmSoYHAEiiE/sbDcMmpMHy5Mp3byRuWCe86xsLK6sVD2F LOsLm7uQGC5QxHzMgMpGiTL6K5E4PkA3w+VZCQyhEHi7OsuCyGDdGWM9nJ5cwfarfYVJ Hhm7N1Nd3dUmME4qWlHF6tnoutuhoxctgRh18RUy6cQ02ivEt61aYP3Pghggy8NpFsJA nL3o3ZLaYC3gLDKVLC6r+lF95SG0mTq/wy44v8nNH8SieP1yesnkdLOwESr1FD5DcZOo k35A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hDXcu90e; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j132-20020a636e8a000000b0039908cd4e78si6975042pgc.263.2022.04.29.05.57.26; Fri, 29 Apr 2022 05:57:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hDXcu90e; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356184AbiD2JAy (ORCPT + 68 others); Fri, 29 Apr 2022 05:00:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356068AbiD2JAy (ORCPT ); Fri, 29 Apr 2022 05:00:54 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0A2D985A6; Fri, 29 Apr 2022 01:57:36 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 896C7621DF; Fri, 29 Apr 2022 08:57:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 910DAC385A4; Fri, 29 Apr 2022 08:57:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651222656; bh=G+F4MHPC3gx10dTFgiEJr2YE94YbxB3UX1Lblg+1WzM=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=hDXcu90eqSpCmOFcOynumu4/Wht0U5igvFoEz74Ca1xLPNFRge+ZuuYY12essSgfP /P8YWT/wShcPCFHU0TDhFFkIdZteZXUZG5ZZaelM3e4GfT7Y3BrrBIXbg2qJTMPWr/ tHoax26SmAUW/xTC/YMuoFh4mNfsJqxUqgsMhGVk6qCQxLBBb9bW8ziYnSpNaAuYUu Sag7EQYypipun+xKyTnhYPi9V+cPWpIXX5kEYSuXbLCgSFF4TzQvO4E+YQM0Q4T5AC Bh54l0/1PPMu6XnS0qcOasmuwSX63YY+ayJEKWNNRrNm12DNrXFIbm1tltq3wsVZzE 1n2oPVZxzquig== From: Kalle Valo To: Manikanta Pubbisetty Cc: , , , , Subject: Re: [PATCH v4 04/12] ath11k: Add register access logic for WCN6750 References: <20220406094107.17878-1-quic_mpubbise@quicinc.com> <20220406094107.17878-5-quic_mpubbise@quicinc.com> <87czh3gjuq.fsf@kernel.org> <2a18a4d3-254b-727e-e96d-90deec61571c@quicinc.com> Date: Fri, 29 Apr 2022 11:57:32 +0300 In-Reply-To: <2a18a4d3-254b-727e-e96d-90deec61571c@quicinc.com> (Manikanta Pubbisetty's message of "Wed, 27 Apr 2022 11:23:52 +0530") Message-ID: <87levoe077.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Manikanta Pubbisetty writes: > On 4/27/2022 11:15 AM, Kalle Valo wrote: >> Manikanta Pubbisetty writes: >> >>> WCN6750 uses static window mapping to access the HW registers. >>> Unlike QCN9074 which uses 2nd window for CE and 3rd window >>> for UMAC register accesses, WCN6750 uses 1st window for UMAC >>> and 2nd window for CE registers. >>> >>> Code is refactored so that WCN6750 can use the existing >>> ath11k_pci_read/write() APIs for accessing the registers. >>> >>> 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 | 3 ++ >>> drivers/net/wireless/ath/ath11k/core.h | 2 + >>> drivers/net/wireless/ath/ath11k/pci.c | 4 ++ >>> drivers/net/wireless/ath/ath11k/pcic.c | 53 +++++++++----------------- >>> 4 files changed, 28 insertions(+), 34 deletions(-) >>> >>> diff --git a/drivers/net/wireless/ath/ath11k/ahb.c b/drivers/net/wireless/ath/ath11k/ahb.c >>> index d73643e3e8dd..d27fc7276977 100644 >>> --- a/drivers/net/wireless/ath/ath11k/ahb.c >>> +++ b/drivers/net/wireless/ath/ath11k/ahb.c >>> @@ -42,6 +42,9 @@ const struct ath11k_bus_params ath11k_ahb_hybrid_bus_params = { >>> .fixed_bdf_addr = false, >>> .fixed_mem_region = false, >>> .hybrid_bus_type = true, >>> + .static_window_map = true, >>> + .dp_window_idx = 1, >>> + .ce_window_idx = 2, >>> }; >> >> Even if the values are zero, please initialise the new fields in every >> bus_params structure: >> >> ahb.c:31:static const struct ath11k_bus_params ath11k_ahb_bus_params = { >> pci.c:118:static const struct ath11k_bus_params ath11k_pci_bus_params = { >> > > Makes sense, should I send another series addressing these? Please fix that already in this patchset. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches