wifi: ath12k: set PERST pin no pull request for WCN7850
authorCarl Huang <quic_cjhuang@quicinc.com>
Fri, 21 Apr 2023 09:44:57 +0000 (12:44 +0300)
committerKalle Valo <quic_kvalo@quicinc.com>
Wed, 26 Apr 2023 14:30:07 +0000 (17:30 +0300)
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 <quic_cjhuang@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20230404032057.3236122-3-quic_cjhuang@quicinc.com
drivers/net/wireless/ath/ath12k/hw.c
drivers/net/wireless/ath/ath12k/qmi.h

index cc47cbf..5991cc9 100644 (file)
@@ -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",
index ad87f19..df76149 100644 (file)
@@ -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,
 };