]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Nov 2012 20:14:06 +0000 (12:14 -0800)
commit45f158b2641200ed81c20a118758ddc8cbfc4364
tree3988c90580d1f5c4dfdbee176ea31bd9c405b33d
parent1325ed662eb4129a96320145bea7ec5bfce249c9
PCI/PM: Resume device before shutdown

commit 3ff2de9ba1a2e22e548979dbcd46e999b22c93d8 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pci/pci-driver.c