qcacld-3.0:IPA-uC: Check IPA pipes are up before disable it when SSR deinit

qcacld-2.0 to qcacld-3.0 propagation

When SSR happens, IPA WDI pipes may not be enabled yet,
so need to check if it up before disable it.

Change-Id: I5ff643fcf9804dc0933105079f0653884f7d63dc
CRs-Fixed: 938605
This commit is contained in:
Yun Park
2015-11-17 15:25:12 -08:00
committed by Prakash Dhavali
parent 4d8b60a777
commit f7dc8cd956

View File

@@ -1820,7 +1820,8 @@ int hdd_ipa_uc_ssr_deinit(void)
* IPA submodule during SSR transient state. So deinit basic IPA * IPA submodule during SSR transient state. So deinit basic IPA
* UC host side to be in sync with reloaded FW during SSR * UC host side to be in sync with reloaded FW during SSR
*/ */
hdd_ipa_uc_disable_pipes(hdd_ipa); if (!hdd_ipa->ipa_pipes_down)
hdd_ipa_uc_disable_pipes(hdd_ipa);
cdf_wake_lock_acquire(&hdd_ipa->ipa_lock); cdf_wake_lock_acquire(&hdd_ipa->ipa_lock);
for (idx = 0; idx < WLAN_MAX_STA_COUNT; idx++) { for (idx = 0; idx < WLAN_MAX_STA_COUNT; idx++) {