PM / Sleep: call early resume handlers when suspend_noirq fails
authorColin Cross <ccross@android.com>
Thu, 19 Jul 2012 01:55:26 +0000 (18:55 -0700)
committerVarun Wadekar <vwadekar@nvidia.com>
Mon, 23 Jul 2012 09:30:35 +0000 (14:30 +0530)
commit10f8a074405645069a28f48450238224f8111ee8
treeb20a937cc4dbc1c4673fd3694f96adf55340b746
parent72b7bd1ac1ca7335690646201c86b13d5ff5cf2f
PM / Sleep: call early resume handlers when suspend_noirq fails

Commit cf579dfb82550e34de7ccf3ef090d8b834ccd3a9 (PM / Sleep: Introduce
"late suspend" and "early resume" of devices) introduced a bug where
suspend_late handlers would be called, but if dpm_suspend_noirq returned
an error the early_resume handlers would never be called.  All devices
would end up on the dpm_late_early_list, and would never be resumed
again.

Fix it by calling dpm_resume_early when dpm_suspend_noirq returns
an error.

Change-Id: I9b984e40c523240bc08f5496183dec763cfef963
Signed-off-by: Colin Cross <ccross@android.com>
drivers/base/power/main.c