pm: system: Suspend devices on STATE_SOFT_OFF
Suspend devices when the system goes to STATE_SOFT_OFF. This state was not triggering any device power management. This should at least suspend devices as it is done for SUSPEND_TO_RAM and SUSPEND_TO_DISK. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
4aec077d17
commit
7aa6fe148e
|
@ -231,6 +231,8 @@ enum pm_state pm_system_suspend(int32_t ticks)
|
|||
case PM_STATE_SUSPEND_TO_RAM:
|
||||
__fallthrough;
|
||||
case PM_STATE_SUSPEND_TO_DISK:
|
||||
__fallthrough;
|
||||
case PM_STATE_SOFT_OFF:
|
||||
if (pm_suspend_devices()) {
|
||||
SYS_PORT_TRACING_FUNC_EXIT(pm, system_suspend,
|
||||
ticks, _handle_device_abort(z_power_state));
|
||||
|
|
Loading…
Reference in New Issue