PCI PM: Restore config spaces of all devices during early resume
authorRafael J. Wysocki <rjw@sisk.pl>
Mon, 16 Mar 2009 21:40:50 +0000 (22:40 +0100)
committerRafael J. Wysocki <rjw@sisk.pl>
Mon, 30 Mar 2009 19:46:56 +0000 (21:46 +0200)
commit931ff68a5a53fa84bcdf9b1b179a80e54e034bd0
tree88263b349d5eda796bb5f0724b52d1f73eeb1a8c
parent4a865905f685eaefaedf6ade362323dc52aa703b
PCI PM: Restore config spaces of all devices during early resume

At present the configuration spaces of PCI devices that have no
drivers or no PM support in the drivers (either legacy or through a
pm object) are not saved during suspend and, consequently, they are
not restored during resume.  This generally may lead to the state of
the system being slightly inconsistent after the resume, so it's
better to save and restore the configuration spaces of these devices
as well.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Ingo Molnar <mingo@elte.hu>
Acked-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/pci-driver.c