PCI PM: Split PCI Express port suspend-resume
authorRafael J. Wysocki <rjw@sisk.pl>
Tue, 13 Jan 2009 23:40:38 +0000 (00:40 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 18 Jan 2009 18:35:46 +0000 (10:35 -0800)
commite1e04d6acc86af7ed9160e73bab9dc6bc9e0e5cf
tree1789ed38298cab24a74ed343f6c45e644b190cc6
parent939c599209d596d205cc44a7fb41b727f20fc459
PCI PM: Split PCI Express port suspend-resume

commit a79d682f789730dfabaebbb507c87a90c0671a62 upstream

Suspend-resume of PCI Express ports has recently been moved into
_suspend_late() and _resume_early() callbacks, but some functions
executed from there should not be called with interrupts disabled,
eg. pci_enable_device().  For this reason, split the suspend-resume
of PCI Express ports into parts to be executed with interrupts
disabled and with interrupts enabled.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/pcie/portdrv_pci.c