Received: by 2002:a05:7412:85a1:b0:e2:908c:2ebd with SMTP id n33csp160977rdh; Mon, 30 Oct 2023 18:04:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGeVSSSgkg/TU8tXB4/u73BvKs+ssE3WaneKg/sVOEDhh3WzU23e17AQ7MTohGbcxbl7b/o X-Received: by 2002:a17:903:1104:b0:1c9:ea6e:5a63 with SMTP id n4-20020a170903110400b001c9ea6e5a63mr11736384plh.32.1698714292451; Mon, 30 Oct 2023 18:04:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698714292; cv=none; d=google.com; s=arc-20160816; b=hZ9KPTMhfFr16KOpzR5471FyeuyH0STWOS5y7r0xxlsJDH9bGrc8NOc4lg1bDovrbT PZUNa/08W+fbt0REJMLeTnu8D5TH1Vt2QASzc5hBLtVKc/svI0b4Z3a/VDMpySiD5B+x 0VMnHmSF62F9d0T/cEVtXpIR3YPJ1WZYlilMVUaw2/DrNrMAPa3ckOsN5FiaFWxOjdNa Egz4olGWMjZYcXKla4Y1YCygpjrDBRV/FeXr0nBqKN0fYwOqPi11LhsoCka69DfdOIhR 4nKgUG1pFuuA59swFC4plRttzKow0z/5wQlRYjv0KVRhusp9VLvRoZa2qYBG8L6aUWzV qJfA== 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=SQZW/CdP3HahVXaQyVTGHV6T287TqandADwzF8Sf/oA=; fh=ypd/nLwWlDoj17AnUaRDAvsIIrWAZbRGkoU2gKZlNJ4=; b=pu++RbDAc9ATUzz1O4K+Ljy5pB55d6H5Vayq2ASFiyeEzMR+spGpgIquBrY/+8jdCB mD7nF11y55bphKsEkFxXakUUmLp4E7vkQRt94b1OozpE7n73dXw7zwgriE96f3btIWKE LNapERCUNPpwkOUSGo1aqWCGaYlPm4+dmYUUW9dU+BQ9Qj2L86G+KB2ML3620FabjxdM X5/iK3EuyQ42lX1ESYCla5eMJ8GPgayiIEkEMVfDlnD+rjgNVsYnsr2s+fUVBVvR2l4p 2ElrIQFz03n8bwUAURmjgdJ97Wshm15fPouoV9eqmF2K7LZkX3Y+8k7xxIZTsSHFNhuZ MZ9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=G+C7EioI; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id lf12-20020a170902fb4c00b001bb3bcd05bbsi188833plb.471.2023.10.30.18.04.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 18:04:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=G+C7EioI; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.32 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 out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 333E28098416; Mon, 30 Oct 2023 18:04:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230021AbjJaBEk (ORCPT + 52 others); Mon, 30 Oct 2023 21:04:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229766AbjJaBEj (ORCPT ); Mon, 30 Oct 2023 21:04:39 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2874C1 for ; Mon, 30 Oct 2023 18:04:37 -0700 (PDT) Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39V0xGdU005132; Tue, 31 Oct 2023 01:04:35 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=SQZW/CdP3HahVXaQyVTGHV6T287TqandADwzF8Sf/oA=; b=G+C7EioIwFGZv4FycIp9kZAhsNNweIGNqQ43H2LF9SpWosHzSMdQxTJm2XRan+50ELzc UqvaeeoI6xOnN5DBhh+z4i3w1vgEh9uhaItGV/Ds/uJ5lE6ysUBq/HP5+qlDdpFwzSaV DX/n8LfvC/zGI8VdoLw7GVvUJZvfwaC8i+55NaMzjwpJFJctX7LCuTdIW9WSrR5KBTdh PNkzADDCfVoJ/DiPl09JbNhWsITIFm3hcuYDly+PQy5SIDv0jze3FjkcJsFBbpng3RgE FF9lRet9xpH/u9nYPVC+qh+1WbOqp/Sf49DpRMthz6VAV+ZoNiS1WeBuadsR4hSIJ14f tw== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3u0sw7was7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 31 Oct 2023 01:04:34 +0000 Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 39V14XpS018245 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 31 Oct 2023 01:04:33 GMT Received: from [10.48.245.206] (10.49.16.6) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.39; Mon, 30 Oct 2023 18:04:33 -0700 Message-ID: Date: Mon, 30 Oct 2023 18:04:32 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 12/13] wifi: ath12k: fix PCI read and write Content-Language: en-US To: Raj Kumar Bhagat , CC: , P Praneesh , Karthikeyan Periyasamy References: <20231030222700.18914-1-quic_rajkbhag@quicinc.com> <20231030222700.18914-13-quic_rajkbhag@quicinc.com> From: Jeff Johnson In-Reply-To: <20231030222700.18914-13-quic_rajkbhag@quicinc.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01a.na.qualcomm.com (10.47.209.196) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: Nhrejt3Mvb7I1FYKtD7trhharKvf5yKm X-Proofpoint-GUID: Nhrejt3Mvb7I1FYKtD7trhharKvf5yKm X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-30_13,2023-10-27_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=774 clxscore=1015 phishscore=0 lowpriorityscore=0 spamscore=0 malwarescore=0 priorityscore=1501 adultscore=0 bulkscore=0 impostorscore=0 suspectscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2310240000 definitions=main-2310310007 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 30 Oct 2023 18:04:50 -0700 (PDT) On 10/30/2023 3:26 PM, Raj Kumar Bhagat wrote: > From: P Praneesh > > Currently, PCI read is failing for the registers belonging to > SECURITY_CONTROL_WLAN registers. These registers read is required > to read the board-id to identify the dual-mac QCN9274 hardware. > > The failure is because, for these registers (SECURITY_CONTROL_WLAN) > offset, ath12k_pci_get_window_start() returns window_start as 0. Due > to this PCI read is done without PCI select window and with > window_start offset as 0. > > Hence, fix PCI read and write by doing PCI select window and by using > the correct window_start offset - WINDOW_START for > SECURITY_CONTROL_WLAN registers. > > Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.1.1-00188-QCAHKSWPL_SILICONZ-1 > Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1 > > Signed-off-by: P Praneesh > Co-developed-by: Karthikeyan Periyasamy > Signed-off-by: Karthikeyan Periyasamy > Signed-off-by: Raj Kumar Bhagat Acked-by: Jeff Johnson