Skip to content
Commit 6e0eda3c authored by Konstantin Khlebnikov's avatar Konstantin Khlebnikov Committed by Bjorn Helgaas
Browse files

PCI: Don't try to disable Bus Master on disconnected PCI devices

This is a fix for commit 7897e602

 ("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: default avatarVivek Goyal <vgoyal@redhat.com>
Signed-off-by: default avatarKonstantin Khlebnikov <khlebnikov@openvz.org>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Cc: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
parent b8178f13
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment