Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4404396ioa; Wed, 27 Apr 2022 03:09:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYuAHHqzXcWb1gO56U7SOlQwCRwxdGfupUub4rXnAznWzXuN5juhaNAUfQ6QQXhh7s+8EP X-Received: by 2002:a17:90b:4c86:b0:1d9:b4fe:9e68 with SMTP id my6-20020a17090b4c8600b001d9b4fe9e68mr8030635pjb.127.1651054150759; Wed, 27 Apr 2022 03:09:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651054150; cv=none; d=google.com; s=arc-20160816; b=iFWpaxMO8EIrEKsHIyPoKkqohr6Akq4Lu6BFiy1h3TsIh1gU3IeLGfIuGF4x09wQDX M/Uy/6iKK0toCRVsPmDRbCIGa+byWEa0Eol380B6OQ5/b5fWUC8k51pTOYErGXEEZc58 eN9PzqtQ5LKoJZ8FF/13VX2/kwciHshf0hETECKoyhaYfDVzB7gkVebhqLY7FMig1gH6 ZIBoQoIvA6BTf/VMH8gG+nnHvDQmGgtmJI3TDMaNpMK+F0P5Kcz3sg2616lU0EO6Zajr JwC1fZ6snKkh+KshWxqsC3ZMYKq84x8TYKRU8tya2SPqojvvFpquwrc8pnVVVRhWB/Lf SW5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=kyHJp3urRg7RiUC1XvnEuetAxaXO2+JM1YtjA5BQfTo=; b=NVXmI3nWNNBnDo73SIlb9xh89GJm72Dbn3fBZGMn9AlYfxsyBq3YRAXt5KCUrKB6ay FqmqlTrncdOlVpzL+w9HrJdOGJ6W5AqVmiDLdORydkV7yLxWSTc4uPZI3xjMFQ0HkSK8 KHBnV5MPpnkAVu85rG0O8L3bVHVfb+R9P9Qndju2XcbMdb3emGVQG/iLDjuVZ27iItG0 YxKnv1E3e5XRZPEovaYMevAxJ44pddnSsp3nM03vx7FJNanGMSJoCNqYfaMBGJFxZcLw iv4xoHtiLQj+UAC7sb4J58o6v2iMmEpb1D0vUSYjMZAJbqhZwcuV1mfiOUZqbxWp/YYD mOOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=Xq6DQbXP; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id s10-20020a170902988a00b00156d899e1c8si1032188plp.615.2022.04.27.03.09.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 03:09:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=Xq6DQbXP; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BFB9130727C; Wed, 27 Apr 2022 02:32:52 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232568AbiD0F5N (ORCPT + 67 others); Wed, 27 Apr 2022 01:57:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232284AbiD0F5J (ORCPT ); Wed, 27 Apr 2022 01:57:09 -0400 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D10EC2612B; Tue, 26 Apr 2022 22:53:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1651038838; x=1682574838; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=kyHJp3urRg7RiUC1XvnEuetAxaXO2+JM1YtjA5BQfTo=; b=Xq6DQbXPPMeeLUHF47a3y1v3Mo67FLIQU/faYvinKltPeTflwGBh1nfU lbEi5U0kxWndLwdQ9WFuBLpB40QW5uuADJe/QK3tVlsvuw4pRj8QF7dZj r69znVn5mSUMSgy7/XonKelhNICa9fR1Xnymlsi2fKbFEDYRiHLpo2iop I=; Received: from unknown (HELO ironmsg04-sd.qualcomm.com) ([10.53.140.144]) by alexa-out-sd-02.qualcomm.com with ESMTP; 26 Apr 2022 22:53:58 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg04-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Apr 2022 22:53:58 -0700 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.986.22; Tue, 26 Apr 2022 22:53:57 -0700 Received: from [10.50.15.218] (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.986.22; Tue, 26 Apr 2022 22:53:55 -0700 Message-ID: <2a18a4d3-254b-727e-e96d-90deec61571c@quicinc.com> Date: Wed, 27 Apr 2022 11:23:52 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH v4 04/12] ath11k: Add register access logic for WCN6750 Content-Language: en-US To: Kalle Valo CC: , , , , References: <20220406094107.17878-1-quic_mpubbise@quicinc.com> <20220406094107.17878-5-quic_mpubbise@quicinc.com> <87czh3gjuq.fsf@kernel.org> From: Manikanta Pubbisetty In-Reply-To: <87czh3gjuq.fsf@kernel.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE autolearn=unavailable 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 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?