aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorYingying Tang <quic_yintang@quicinc.com>2025-04-23 11:26:50 +0530
committerJeff Johnson <jeff.johnson@oss.qualcomm.com>2025-05-19 10:45:39 -0700
commit167e6fc7a4471db2c88bb8da32ac444734a41cea (patch)
tree2e3975d48f282a1e38318b460d61954eff4d5cfb
parentwifi: ath12k: Reorder and relocate the release of resources in ath12k_core_deinit() (diff)
downloadwireguard-linux-167e6fc7a4471db2c88bb8da32ac444734a41cea.tar.xz
wireguard-linux-167e6fc7a4471db2c88bb8da32ac444734a41cea.zip
wifi: ath12k: Adjust the process of resource release for ahb bus
Due to the change in the resource release order in ath12k_core_deinit(), the resource release order in the AHB bus removal process needs to be adjusted accordingly. Tested-on: IPQ5332 hw1.0 AHB WLAN.WBE.1.3.1-00130-QCAHKSWPL_SILICONZ-1 Fixes: 6cee30f0da75 ("wifi: ath12k: add AHB driver support for IPQ5332") Signed-off-by: Yingying Tang <quic_yintang@quicinc.com> Reviewed-by: Vasanthakumar Thiagarajan <vasanthakumar.thiagarajan@oss.qualcomm.com> Link: https://patch.msgid.link/20250423055650.16230-3-quic_yintang@quicinc.com Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
Diffstat (limited to '')
-rw-r--r--drivers/net/wireless/ath/ath12k/ahb.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath12k/ahb.c b/drivers/net/wireless/ath/ath12k/ahb.c
index 636dfe237a79..8d1a86e420a4 100644
--- a/drivers/net/wireless/ath/ath12k/ahb.c
+++ b/drivers/net/wireless/ath/ath12k/ahb.c
@@ -1125,14 +1125,13 @@ static void ath12k_ahb_remove(struct platform_device *pdev)
if (test_bit(ATH12K_FLAG_QMI_FAIL, &ab->dev_flags)) {
ath12k_ahb_power_down(ab, false);
- ath12k_qmi_deinit_service(ab);
goto qmi_fail;
}
ath12k_ahb_remove_prepare(ab);
- ath12k_core_deinit(ab);
-
+ ath12k_core_hw_group_cleanup(ab->ag);
qmi_fail:
+ ath12k_core_deinit(ab);
ath12k_ahb_free_resources(ab);
}