Parcourir la source

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
Karthik Kantamneni il y a 4 ans
Parent
commit
54860cdcc8
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      components/pmo/core/src/wlan_pmo_suspend_resume.c

+ 2 - 2
components/pmo/core/src/wlan_pmo_suspend_resume.c

@@ -1290,6 +1290,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;
@@ -1299,8 +1301,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);