summaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug/acpiphp.h
diff options
context:
space:
mode:
authorJiang Liu <liuj97@gmail.com>2013-04-12 07:44:18 +0200
committerBjorn Helgaas <bhelgaas@google.com>2013-04-12 23:38:25 +0200
commit3a0e40beefc20852191ed65d53e1b82d95ac11b8 (patch)
tree88016bbede6794b6635d86e19c1cd09b56e295e4 /drivers/pci/hotplug/acpiphp.h
parentPCI: acpiphp: Use list_for_each_entry_safe() in acpiphp_sanitize_bus() (diff)
downloadlinux-3a0e40beefc20852191ed65d53e1b82d95ac11b8.tar.xz
linux-3a0e40beefc20852191ed65d53e1b82d95ac11b8.zip
PCI: acpiphp: Remove all functions even if function 0 doesn't exist
Currently function disable_device() detects slot state by checking existence of PCI function 0. It's unreliable because the PCI device for function 0 may be removed through the sysfs interface. If that happens, it will cause powering off a hotplug slot without destroying all PCI devices. On the other hand, it won't hurt us except wasting some computation power if the check is removed, because all code of disable_device() is self-protected. So remove the check. Signed-off-by: Jiang Liu <jiang.liu@huawei.com> Signed-off-by: Yijing Wang <wangyijing@huawei.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Yinghai Lu <yinghai@kernel.org> Cc: "Rafael J. Wysocki" <rafael.j.wysocki@intel.com> Cc: Toshi Kani <toshi.kani@hp.com>
Diffstat (limited to 'drivers/pci/hotplug/acpiphp.h')
0 files changed, 0 insertions, 0 deletions