]> git.karo-electronics.de Git - karo-tx-linux.git/commit
PCI/PM: Resume device before shutdown
authorHuang Ying <ying.huang@intel.com>
Wed, 24 Oct 2012 06:54:14 +0000 (14:54 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 2 Nov 2012 22:57:18 +0000 (16:57 -0600)
commit3ff2de9ba1a2e22e548979dbcd46e999b22c93d8
tree1ef3bf252f317b6943654f36c985c8e32583e089
parent90b5c1d7c45eeb622302680ff96ed30c1a2b6f0e
PCI/PM: Resume device before shutdown

Some actions during shutdown need device to be in D0 state, such as
MSI shutdown etc, so resume device before shutdown.

Without this patch, a device may not be enumerated after a kexec
because the corresponding bridge is not in D0, so that
configuration space of the device is not accessible.

Signed-off-by: Huang Ying <ying.huang@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
CC: stable@vger.kernel.org # v3.6+
drivers/pci/pci-driver.c