diff options
author | Linus Torvalds | 2007-05-17 00:28:14 +0200 |
---|---|---|
committer | Linus Torvalds | 2007-05-17 00:33:19 +0200 |
commit | 52ade9b3b97fd3bea42842a056fe0786c28d0555 (patch) | |
tree | 70ae152f573b5d0f5078e2506830c3b804ab6816 /drivers | |
parent | arm: walk_stacktrace() needs to be exported (diff) | |
download | kernel-qcow2-linux-52ade9b3b97fd3bea42842a056fe0786c28d0555.tar.gz kernel-qcow2-linux-52ade9b3b97fd3bea42842a056fe0786c28d0555.tar.xz kernel-qcow2-linux-52ade9b3b97fd3bea42842a056fe0786c28d0555.zip |
Fix ACPI suspend / device suspend ordering problem
In commit e3c7db621bed4afb8e231cb005057f2feb5db557 we fixed the resume
ordering, so that the ACPI low-level resume code was called before the
actual driver resume was called. However, that broke the nesting logic
of suspend and resume, and we continued to suspend the devices _after_
we the ACPI device suspend code was called.
That resulted in us saving PCI state for devices that had already been
changed by ACPI, and in some cases disabled entirely (causing the PCI
save_state to be all-ones). Which in turn caused the wrong state to be
written back on resume.
This moves the ACPI device suspend to after the device model per-device
suspend() calls. This fixes the bogus state save.
Thanks to Lukáš Hejtmánek for testing.
Acked-by: Lukas Hejtmanek <xhejtman@ics.muni.cz>
Acked-by: Rafael J. Wysocki <rjw@sisk.pl>
Cc: Len Brown <len.brown@intel.com>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions