Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5407262rwl; Mon, 3 Apr 2023 20:25:23 -0700 (PDT) X-Google-Smtp-Source: AKy350aZcQun3ho11yzXNYJ7GdGTaoR7cncDpSSFU5T5Md8ZvNkKrL5DLOnCbvAoVAksUxd98xH5 X-Received: by 2002:a62:170c:0:b0:625:ce21:3b1b with SMTP id 12-20020a62170c000000b00625ce213b1bmr779616pfx.3.1680578723517; Mon, 03 Apr 2023 20:25:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680578723; cv=none; d=google.com; s=arc-20160816; b=q4imZ1RSsicRt6U51YNIlmzcasEKjJTtj4cRBL1ALytBwu6hmMEvMl6c+JFf/timlV AfJMv0NVovlBl7ynB3YCA5iilF/vtbG2n/CS6JETeDzy6rqzIHSEf+aTnISquhDMsGrp KVYW3hOKX9kFqBCaK/3oSo6HtMgCn5vkBZaRmuVIbgxM70U39RwbLXWqWm99Y/iJwoOU Vduk9srDkG/zz5263fbHU4/siw2XER7kAsh9LeZyLHJijHclshP8/eXccyGSpzSUe+fh 9MBi681kKgZggl+s45yeS7SP07LvNFL/erw4EJ/mEZwTWdh39/Vn7T6GA4C3S6JSx37q PDQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Sd5mX7XeoUv7hZO+VDdvi6cAe4xVsd6e8G/Lh2wv9fg=; b=uJbDBDFQ6QF4xAEwqarZ16K6t3hW9VvHGHnq88kZRhObdBeN8xXMvg8lzWc37p+3j9 ztdfJriPoxh56AXnp8d1NYdHod+NYtUK7MwN0VOpj/JqfQcS27Sewg7/oYc5//78qiVQ OCRKzxBB+vkfMdV8qG3RCA84boTOujkNRAicyzNMpScaGQA5kU/NyYREOqmLVWqwatoH pRGIrAbPVEXV+R07HYR97lbZIwqQGZxJWn+hzsHwkTqapfcfUpYDScKtXPUsjL2hj0+f xsR6O8c1knQc2WZGNi+18RTSkkW4vtTI2LzjhJr+/ZPRBsk7e8ntwyfnXP9u+h0iMCXe FtaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=au9Ji1VJ; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i2-20020a635402000000b0050bde92f3adsi3114169pgb.837.2023.04.03.20.25.15; Mon, 03 Apr 2023 20:25:23 -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=@quicinc.com header.s=qcppdkim1 header.b=au9Ji1VJ; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233143AbjDDDVX (ORCPT + 60 others); Mon, 3 Apr 2023 23:21:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233121AbjDDDVU (ORCPT ); Mon, 3 Apr 2023 23:21:20 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E4A5C2 for ; Mon, 3 Apr 2023 20:21:19 -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 3340Z4SE003797; Tue, 4 Apr 2023 03:21:17 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=Sd5mX7XeoUv7hZO+VDdvi6cAe4xVsd6e8G/Lh2wv9fg=; b=au9Ji1VJA4mSJfVJt1eS33sMzOK5K5hpBBfpQGPBlPGbVlpNPJSU9wn6o3Kx+dNd3HCw Ne/GLw/qjSGBYCrCJ6h8xAc5lJDAltJYqSl4he3o0EydmZf1FJXcmXiQWEsUaPFBiTX4 7wRDyDsfq70bVwfRRqFYf8t8lehuWjpo9XfJMErqd9gWCW6z/etFi+MXG1yrb0mNcMuA ergWGMBxp8gNyLFAWU8ArB+Ryjafx/Sr73K6J2H1qcHcVdoWGXgf0xCGqIJek8hQCX19 RxVyQ+O22FdnZngHspzpF8LamL6e5GKzC7ZbDkr76UWTASjDT8gtnGGgUeaJJ/XOm5TK +A== Received: from nasanppmta05.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3pqtdnaj3h-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 04 Apr 2023 03:21:16 +0000 Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3343LF8D012487 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 4 Apr 2023 03:21:15 GMT Received: from cjhuang2-gv.qualcomm.com (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42; Mon, 3 Apr 2023 20:21:14 -0700 From: Carl Huang To: CC: , Subject: [PATCH 2/2] wifi: ath12k: set PERST pin no pull request for WCN7850 Date: Tue, 4 Apr 2023 11:20:57 +0800 Message-ID: <20230404032057.3236122-3-quic_cjhuang@quicinc.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230404032057.3236122-1-quic_cjhuang@quicinc.com> References: <20230404032057.3236122-1-quic_cjhuang@quicinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01a.na.qualcomm.com (10.52.223.231) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: VMfu4O8H-LTIXAN3INycBZnsq-SSHL6t X-Proofpoint-GUID: VMfu4O8H-LTIXAN3INycBZnsq-SSHL6t X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-03_19,2023-04-03_03,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 impostorscore=0 mlxscore=0 mlxlogscore=968 lowpriorityscore=0 spamscore=0 malwarescore=0 adultscore=0 bulkscore=0 phishscore=0 priorityscore=1501 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304040029 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org The PCIe PERST pin is currently pulled down on WCN7850 and it causes some power leakage. Fix it by notifying firmware not to pull down PCIe PERST pin in QMI message for WCN7850. Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0-03427-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.15378.4 Signed-off-by: Carl Huang --- drivers/net/wireless/ath/ath12k/hw.c | 3 ++- drivers/net/wireless/ath/ath12k/qmi.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath12k/hw.c b/drivers/net/wireless/ath/ath12k/hw.c index cc47cbf93f6b..5991cc91cd00 100644 --- a/drivers/net/wireless/ath/ath12k/hw.c +++ b/drivers/net/wireless/ath/ath12k/hw.c @@ -962,7 +962,8 @@ static const struct ath12k_hw_params ath12k_hw_params[] = { .hal_ops = &hal_wcn7850_ops, - .qmi_cnss_feature_bitmap = BIT(CNSS_QDSS_CFG_MISS_V01), + .qmi_cnss_feature_bitmap = BIT(CNSS_QDSS_CFG_MISS_V01) | + BIT(CNSS_PCIE_PERST_NO_PULL_V01), }, { .name = "qcn9274 hw2.0", diff --git a/drivers/net/wireless/ath/ath12k/qmi.h b/drivers/net/wireless/ath/ath12k/qmi.h index ad87f19903db..df76149c49f5 100644 --- a/drivers/net/wireless/ath/ath12k/qmi.h +++ b/drivers/net/wireless/ath/ath12k/qmi.h @@ -189,6 +189,7 @@ struct wlfw_host_mlo_chip_info_s_v01 { enum ath12k_qmi_cnss_feature { CNSS_FEATURE_MIN_ENUM_VAL_V01 = INT_MIN, CNSS_QDSS_CFG_MISS_V01 = 3, + CNSS_PCIE_PERST_NO_PULL_V01 = 4, CNSS_MAX_FEATURE_V01 = 64, CNSS_FEATURE_MAX_ENUM_VAL_V01 = INT_MAX, }; -- 2.25.1