mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
qcacld-3.0: IPA uC: Return EPERM for RM CONS REQ only during unloading
qcacld-2.0 to qcacld-3.0 propagation Change to return -EINPROGRESS if WLAN unable to grant IPA CONS resource due to IPA resource loading is in progress. Return -EPERM only if WLAN unable to grant IPA CONS resource due to IPA resource unloading is in progress. Change-Id: Iea4d804d3f81b086e723230fb8eddc7d9561d7d1 CRs-Fixed: 926880
This commit is contained in:
parent
a471e5e2ad
commit
4d8b60a777
1 changed files with 13 additions and 4 deletions
|
|
@ -2100,14 +2100,23 @@ static int hdd_ipa_rm_cons_release(void)
|
|||
*/
|
||||
static int hdd_ipa_rm_cons_request(void)
|
||||
{
|
||||
if ((ghdd_ipa->resource_loading) || (ghdd_ipa->resource_unloading)) {
|
||||
int ret = 0;
|
||||
|
||||
if (ghdd_ipa->resource_loading) {
|
||||
HDD_IPA_LOG(CDF_TRACE_LEVEL_FATAL,
|
||||
"%s: ipa resource loading/unloading in progress",
|
||||
"%s: IPA resource loading in progress",
|
||||
__func__);
|
||||
ghdd_ipa->pending_cons_req = true;
|
||||
return -EPERM;
|
||||
ret = -EINPROGRESS;
|
||||
} else if (ghdd_ipa->resource_unloading) {
|
||||
HDD_IPA_LOG(CDF_TRACE_LEVEL_FATAL,
|
||||
"%s: IPA resource unloading in progress",
|
||||
__func__);
|
||||
ghdd_ipa->pending_cons_req = true;
|
||||
ret = -EPERM;
|
||||
}
|
||||
return 0;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue