Ver código fonte

qcacld-3.0: Send IPA CONS RM grant notification when loading is completed

qcacld-2.0 to qcacld-3.0 propagation

When IPA requests WLAN CONS resource while IPA resource loading is in
progress, resource will not be granted even after the loading is
completed. This will eventually result IPA uC timeout.

Change-Id: Iae8373c43709cbbccef790973642f5992ddcd359
CRs-Fixed: 943635
Yun Park 9 anos atrás
pai
commit
ccc6d7a8d6
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4 0
      core/hdd/src/wlan_hdd_ipa.c

+ 4 - 0
core/hdd/src/wlan_hdd_ipa.c

@@ -1377,6 +1377,10 @@ static void hdd_ipa_uc_op_cb(struct op_msg_type *op_msg, void *usr_ctxt)
 		if (HDD_IPA_UC_NUM_WDI_PIPE == hdd_ipa->activated_fw_pipe) {
 			hdd_ipa->resource_loading = false;
 			hdd_ipa_uc_proc_pending_event(hdd_ipa);
+			if (hdd_ipa->pending_cons_req)
+				ipa_rm_notify_completion(
+						IPA_RM_RESOURCE_GRANTED,
+						IPA_RM_RESOURCE_WLAN_CONS);
 		}
 		cdf_mutex_release(&hdd_ipa->ipa_lock);
 	}