diff options
Diffstat (limited to 'power')
-rw-r--r-- | power/sc7180.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/power/sc7180.c b/power/sc7180.c index f80703f740..212e47fe8b 100644 --- a/power/sc7180.c +++ b/power/sc7180.c @@ -1033,10 +1033,15 @@ enum power_state power_handle_state(enum power_state state) #ifdef CONFIG_CHIPSET_RESUME_INIT_HOOK /* * Pair with the HOOK_CHIPSET_RESUME_INIT, i.e. disabling SPI - * driver, by notifying the SUSPEND_COMPLETE hook. The normal - * SUSPEND hook will be notified afterward. + * driver, by notifying the SUSPEND_COMPLETE hooks. + * + * If shutdown from an on state, notify the SUSPEND hooks too; + * otherwise (suspend from S0), the normal SUSPEND hooks will + * be notified afterward. */ hook_notify(HOOK_CHIPSET_SUSPEND_COMPLETE); + if (shutdown_from_on) + hook_notify(HOOK_CHIPSET_SUSPEND); #else hook_notify(HOOK_CHIPSET_SUSPEND); #endif |