]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Don't try to disable Bus Master on disconnected PCI devices
authorKonstantin Khlebnikov <khlebnikov@openvz.org>
Thu, 14 Mar 2013 14:49:37 +0000 (18:49 +0400)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 3 Apr 2013 00:03:09 +0000 (18:03 -0600)
commit11edb8b3c72f2829d0aca84d97ca0977dbe0f6ce
treed3d336d2ab410a895a6f7257ef9b147225c5ee82
parent9ee7b2aa96c3de35a7341d8700411abf9ae22fc9
PCI: Don't try to disable Bus Master on disconnected PCI devices

This is a fix for commit e1c5a9dbb9 ("PCI: Disable Bus Master
unconditionally in pci_device_shutdown()").  Vivek reported that
with this commit, kexec failed because none of his SATA disks
came up.

A ->shutdown() callback might put the device in D3cold, which means config
space is no longer available.

[bhelgaas: changelog]
Link: https://lkml.org/lkml/2013/3/12/529
Reported-and-Tested-by: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/pci/pci-driver.c