Skip to content

Commit

Permalink
power: active all devices if not all devices enter suspend state
Browse files Browse the repository at this point in the history
Active all devices if not all devices enter suspend state when system
decide going to suspend state.

Signed-off-by: Wentong Wu <[email protected]>
  • Loading branch information
wentongwu authored and nashif committed Jan 4, 2020
1 parent 9989e5e commit e71485e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions subsys/power/power.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ enum power_states _sys_suspend(s32_t ticks)
/* Suspend peripherals. */
if (sys_pm_suspend_devices()) {
LOG_DBG("Some devices didn't enter suspend state!");
sys_pm_resume_devices();
sys_pm_notify_power_state_exit(pm_state);
pm_state = SYS_POWER_STATE_ACTIVE;
return pm_state;
Expand Down

0 comments on commit e71485e

Please sign in to comment.