mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
qcacld-3.0: Ignore idle_shutdown if any interface is up
Ignore idle_shutdown if any interface is up. This is done to handle special scenario in which platform driver triggers idle shutdown when it receives Deep sleep/Hibernate entry notification from modem subsystem in wearable devices. Change-Id: I0f2a3bd4cbf0d7c0d3577dfbd15c7b3001d827d1 CRs-Fixed: 3091085
This commit is contained in:
parent
970aed1bcf
commit
0f9e820863
1 changed files with 10 additions and 0 deletions
|
|
@ -12262,6 +12262,16 @@ 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
|
||||
|
|
|
|||
Loading…
Reference in a new issue