]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "PCI PM: Register power state of devices during initialization"
authorLinus Torvalds <torvalds@linux-foundation.org>
Fri, 16 Jan 2009 16:14:51 +0000 (08:14 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 16 Jan 2009 16:14:51 +0000 (08:14 -0800)
commit6fadfacfa93abd4e5202ea33fffe1bd4c30b8536
treed6febca069bd5734adb2383bbfe87192fad4ef7c
parentceda1bd6e462b27fabcb270ba99a16c63c42bf15
Revert "PCI PM: Register power state of devices during initialization"

This reverts commit bf0ace96f0bfc8b932531f3a9e07baff14d2af83, as Yinghai
Lu reports that it breaks kexec with at least the e1000 and e1000e
drivers.  The reason is that the shutdown sequence puts the hardware
into D3 sleep, and the commit causes us to claim that it then is in D0
(running) state just because we don't understand the PM capabilities.

Which then later makes "pci_set_power_state()" not do anything, and the
device never wakes up properly and just returns 0xff to everything.

Reported-by: Yinghai Lu <yinghai@kernel.org>
Acked-by: From: Rafael J. Wysocki <rjw@sisk.pl>
Cc: Jesse Barnes <jesse.barnes@intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/pci/pci.c