From 048b699a113141d857e370aa01de3fa164b21953 Mon Sep 17 00:00:00 2001 From: Karthik Kantamneni Date: Fri, 2 Apr 2021 10:31:19 +0530 Subject: [PATCH] qcacld-3.0: In resume sequence mark runtime resume as success properly Currently runtime resume is marked as success after kicking HTC queues, due to this non PM marked WMI commands are not sent out properly. Fix this by marking runtime resume as success before kicking HTC queues, since resume is set as success as part of HTC kick queues WMI commands will be sent out properly. Change-Id: I5e3f98cbc5888bdf83f760b055c9b706c18737ef CRs-Fixed: 2899609 --- components/pmo/core/src/wlan_pmo_suspend_resume.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/pmo/core/src/wlan_pmo_suspend_resume.c b/components/pmo/core/src/wlan_pmo_suspend_resume.c index 6c07d981c251..682e5fcaa26a 100644 --- a/components/pmo/core/src/wlan_pmo_suspend_resume.c +++ b/components/pmo/core/src/wlan_pmo_suspend_resume.c @@ -1284,6 +1284,8 @@ QDF_STATUS pmo_core_psoc_bus_runtime_resume(struct wlan_objmgr_psoc *psoc, if (status != QDF_STATUS_SUCCESS) goto fail; + hif_process_runtime_resume_success(hif_ctx); + if (htc_runtime_resume(htc_ctx)) { status = QDF_STATUS_E_FAILURE; goto fail; @@ -1293,8 +1295,6 @@ QDF_STATUS pmo_core_psoc_bus_runtime_resume(struct wlan_objmgr_psoc *psoc, if (status != QDF_STATUS_SUCCESS) goto fail; - hif_process_runtime_resume_success(hif_ctx); - fail: if (status != QDF_STATUS_SUCCESS) qdf_trigger_self_recovery(psoc, QDF_RESUME_TIMEOUT);