qcacld-3.0: Idle shutdown in suspend prepare
To support shutdown WLAN when system goes into suspend, add idle shutdown when got PM_SUSPEND_PREPARE/PM_HIBERNATION_PREPARE. Before suspend/shutdown, user space should stop adapter. And after resume, user space should restart adapter. This can ensure user and kernel space to sync adapter's state. Change-Id: Id1f5172a7fc1792c83c8c1c20127de815f7e4980 CRs-Fixed: 3208931
This commit is contained in:

committed by
Madan Koyyalamudi

parent
f4dfc63210
commit
a2a82c280d
@@ -340,13 +340,14 @@
|
||||
* <ini>
|
||||
* gSuspendMode - Suspend mode configuration
|
||||
* @Min: 0
|
||||
* @Max: 2
|
||||
* @Max: 3
|
||||
* @Default: 2
|
||||
*
|
||||
* This ini is used to set suspend mode. Configurations are as follows:
|
||||
* 0 - Does not support suspend.
|
||||
* 1 - Legency suspend mode, PDEV suspend.
|
||||
* 2 - WOW suspend mode.
|
||||
* 3 - Shutdown wlan while suspend.
|
||||
*
|
||||
* Related: None
|
||||
*
|
||||
@@ -357,7 +358,7 @@
|
||||
* </ini>
|
||||
*/
|
||||
#define CFG_PMO_SUSPEND_MODE CFG_INI_UINT("gSuspendMode", \
|
||||
0, 2, 2, \
|
||||
0, 3, 2, \
|
||||
CFG_VALUE_OR_DEFAULT, \
|
||||
"Suspend mode")
|
||||
|
||||
|
@@ -175,11 +175,13 @@ enum powersave_mode {
|
||||
* @PMO_SUSPEND_NONE: Does not support suspend
|
||||
* @PMO_SUSPEND_LEGENCY: Legency PDEV suspend mode
|
||||
* @PMO_SUSPEND_WOW: WoW suspend mode
|
||||
* @PMO_SUSPEND_SHUTDOWN: Shutdown suspend mode. Shutdown while suspend
|
||||
*/
|
||||
enum pmo_suspend_mode {
|
||||
PMO_SUSPEND_NONE = 0,
|
||||
PMO_SUSPEND_LEGENCY,
|
||||
PMO_SUSPEND_WOW
|
||||
PMO_SUSPEND_WOW,
|
||||
PMO_SUSPEND_SHUTDOWN
|
||||
};
|
||||
|
||||
#define PMO_TARGET_SUSPEND_TIMEOUT (4000)
|
||||
|
Reference in New Issue
Block a user