]> git.baikalelectronics.ru Git - kernel.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)
commit88b3b7a69d5c0f042d9296cf0b40e50b7a8da10d
tree1ef3bf252f317b6943654f36c985c8e32583e089
parentd56ec210529e21aa1ef29a18ed8c8de6b0833e04
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