]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] pci: only call pci_restore_bars at boot
authorJohn W. Linville <linville@tuxdriver.com>
Wed, 14 Sep 2005 13:52:42 +0000 (09:52 -0400)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 14 Sep 2005 16:37:17 +0000 (09:37 -0700)
commit32a3658533c6f4c6bf370dd730213e802464ef9b
treee473c32ffcfc0529c3467c9990e592a362c51d8b
parent186051d70444742bf1c2bc0257dd4696a3df66e3
[PATCH] pci: only call pci_restore_bars at boot

Certain (SGI?) ia64 boxes object to having their PCI BARs
restored unless absolutely necessary. This patch restricts calling
pci_restore_bars from pci_set_power_state unless the current state
is PCI_UNKNOWN, the actual (i.e. physical) state of the device is
PCI_D3hot, and the device indicates that it will lose its configuration
when transitioning to PCI_D0.

Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/pci/pci.c