mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
qcacld-3.0: Do not ignore idle_shutdown in case of driver mode change
Allow idle shutdown in case it is triggered due to driver mode change even if any of interface is up. Change-Id: I29db749d40729a7e7633836bd23083f7652ac845 CRs-Fixed: 3106971
This commit is contained in:
parent
08c87b4a34
commit
835c965833
1 changed files with 12 additions and 11 deletions
|
|
@ -12262,20 +12262,21 @@ int hdd_psoc_idle_shutdown(struct device *dev)
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
/*
|
||||
* This is to handle scenario in which platform driver triggers
|
||||
* idle_shutdown if Deep Sleep/Hibernate entry notification is
|
||||
* received from modem subsystem in wearable devices
|
||||
*/
|
||||
if (hdd_is_any_interface_open(hdd_ctx)) {
|
||||
hdd_err_rl("all interfaces are not down, ignore idle shutdown");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (is_mode_change_psoc_idle_shutdown)
|
||||
ret = __hdd_mode_change_psoc_idle_shutdown(hdd_ctx);
|
||||
else
|
||||
else {
|
||||
/*
|
||||
* This is to handle scenario in which platform driver triggers
|
||||
* idle_shutdown if Deep Sleep/Hibernate entry notification is
|
||||
* received from modem subsystem in wearable devices
|
||||
*/
|
||||
if (hdd_is_any_interface_open(hdd_ctx)) {
|
||||
hdd_err_rl("all interfaces are not down, ignore idle shutdown");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
ret = __hdd_psoc_idle_shutdown(hdd_ctx);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue