mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
PM: Check dpm_suspend_start() return code during partial resume
Bug: 24986869 Change-Id: Iea3e0f84e43827b365b96d34bc647e310523bd40 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com> Signed-off-by: Thierry Strudel <tstrudel@google.com>
This commit is contained in:
parent
0ff10ad812
commit
36f258a110
1 changed files with 7 additions and 1 deletions
|
@ -252,8 +252,14 @@ static bool suspend_again(bool *drivers_resumed)
|
|||
if (suspend_again_consensus() &&
|
||||
!freeze_kernel_threads()) {
|
||||
clear_wakeup_reasons();
|
||||
dpm_suspend_start(PMSG_SUSPEND);
|
||||
*drivers_resumed = false;
|
||||
if (dpm_suspend_start(PMSG_SUSPEND)) {
|
||||
printk(KERN_ERR "PM: Some devices failed to suspend\n");
|
||||
log_suspend_abort_reason("Some devices failed to suspend");
|
||||
if (suspend_ops->recover)
|
||||
suspend_ops->recover();
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue