Suspend/Resume bug in PCI layer wrt quirks
commite1a2a51e684bfe9d6165992d4a065439617a3107
authorRafael J. Wysocki <rjw@sisk.pl>
Thu, 15 May 2008 19:51:31 +0000 (15 21:51 +0200)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 10 Jun 2008 17:59:46 +0000 (10 10:59 -0700)
tree4d05a1b9ebadd0ab22e0e42ee3b053dddf11baf1
parent273c11270d3715c4c06d4df1607a1a60034d887b
Suspend/Resume bug in PCI layer wrt quirks

Some quirks should be called with interrupt disabled, we can't directly
call them in .resume_early. Also the patch introduces
pci_fixup_resume_early and pci_fixup_suspend, which matches current
device core callbacks (.suspend/.resume_early).

TBD: Somebody knows why we need quirk resume should double check if a
quirk should be called in resume or resume_early. I changed some per my
understanding, but can't make sure I fixed all.

Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/pci-driver.c
drivers/pci/quirks.c
include/asm-generic/vmlinux.lds.h
include/linux/pci.h