PCI: Suspend and resume PCI Express ports with interrupts disabled
authorRafael J. Wysocki <rjw@sisk.pl>
Tue, 13 Jan 2009 23:38:27 +0000 (00:38 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 18 Jan 2009 18:35:45 +0000 (10:35 -0800)
commit5f94bb6eda87dcd0136ceb52b62c03ebbb651443
tree474c36af16b6bff3c132740b65172602b0b5859d
parent1354abbe6d62382e09f5c2af3bea6fd3b09f9b64
PCI: Suspend and resume PCI Express ports with interrupts disabled

commit 90d25f246ddefbb743764f8d45ae97e545a6ee86 upstream

I don't see why the suspend and resume of PCI Express ports should be
handled with interrupts enabled and it may even lead to problems in
some situations.  For this reason, move the suspending and resuming
of PCI Express ports into ->suspend_late() and ->resume_early()
callbacks executed with interrupts disabled.

This patch addresses the regression from 2.6.26 tracked as
http://bugzilla.kernel.org/show_bug.cgi?id=12121 .

Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
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