mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
qcacld-3.0: Call runtime pm sync resume when hif ctx is present
Currently if hif ctx is null hdd driver unload is returned without proper cleanup where hif ctx is not required. To avoid this call runtime pm sync resume only when hif ctx is present. CRs-Fixed: 2619481 Change-Id: I761c96446024a175746ef377e1e31b593b93b616
This commit is contained in:
parent
89a5ec2bf2
commit
d33455d6d4
1 changed files with 6 additions and 9 deletions
|
|
@ -15048,17 +15048,14 @@ static void hdd_driver_unload(void)
|
|||
QWLAN_VERSIONSTR);
|
||||
|
||||
hif_ctx = cds_get_context(QDF_MODULE_ID_HIF);
|
||||
if (!hif_ctx) {
|
||||
hdd_err_rl("hif context is Null");
|
||||
return;
|
||||
if (hif_ctx) {
|
||||
/*
|
||||
* Trigger runtime sync resume before setting unload in progress
|
||||
* such that resume can happen successfully
|
||||
*/
|
||||
hif_pm_runtime_sync_resume(hif_ctx);
|
||||
}
|
||||
|
||||
/*
|
||||
* Trigger runtime sync resume before setting unload in progress
|
||||
* such that resume can happen successfully
|
||||
*/
|
||||
hif_pm_runtime_sync_resume(hif_ctx);
|
||||
|
||||
cds_set_driver_loaded(false);
|
||||
cds_set_unload_in_progress(true);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue