]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
ath11k: add ath11k_qmi_free_resource() for recovery
authorWen Gong <quic_wgong@quicinc.com>
Mon, 14 Feb 2022 17:53:16 +0000 (19:53 +0200)
committerKalle Valo <quic_kvalo@quicinc.com>
Mon, 21 Feb 2022 10:04:59 +0000 (12:04 +0200)
ath11k_qmi_free_target_mem_chunk() and ath11k_qmi_m3_free() is static
in qmi.c, they are needed for recovery, export them in a new function.

Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-03003-QCAHSPSWPL_V1_V2_SILICONZ_LITE-2

Signed-off-by: Wen Gong <quic_wgong@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20220209060012.32478-2-quic_wgong@quicinc.com
drivers/net/wireless/ath/ath11k/qmi.c
drivers/net/wireless/ath/ath11k/qmi.h

index d0701e8eca9c0e439a548fa4d24c8280b9b28d64..1144e828cf5cc321fe95d60241ca63eea1ee71f2 100644 (file)
@@ -3025,3 +3025,8 @@ void ath11k_qmi_deinit_service(struct ath11k_base *ab)
 }
 EXPORT_SYMBOL(ath11k_qmi_deinit_service);
 
+void ath11k_qmi_free_resource(struct ath11k_base *ab)
+{
+       ath11k_qmi_free_target_mem_chunk(ab);
+       ath11k_qmi_m3_free(ab);
+}
index ba2eff4d59cb521bbbcdbaca6d9c4c8e208172b2..61678de56ac7edb747c78feb0c22744a9af8f41f 100644 (file)
@@ -492,5 +492,6 @@ void ath11k_qmi_event_work(struct work_struct *work);
 void ath11k_qmi_msg_recv_work(struct work_struct *work);
 void ath11k_qmi_deinit_service(struct ath11k_base *ab);
 int ath11k_qmi_init_service(struct ath11k_base *ab);
+void ath11k_qmi_free_resource(struct ath11k_base *ab);
 
 #endif