PCI: Introduce /sys/bus/pci/rescan
authorAlex Chiang <achiang@hp.com>
Fri, 20 Mar 2009 20:56:31 +0000 (14:56 -0600)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 20 Mar 2009 21:57:58 +0000 (14:57 -0700)
commit705b1aaa823e800490f157cd9366ad8cff385f5f
tree634ea8ba227a305074938f49c110fea8e68e8bb3
parent3ed4fd96b3188406ac5357d9290bcffa08c65cf6
PCI: Introduce /sys/bus/pci/rescan

This interface allows the user to force a rescan of all PCI buses
in system, and rediscover devices that have been removed earlier.

pci_bus_attrs implementation from Trent Piepho.

Thanks to Vegard Nossum for discovering locking issues with the
sysfs interface.

Cc: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Alex Chiang <achiang@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Documentation/ABI/testing/sysfs-bus-pci
drivers/pci/pci-driver.c
drivers/pci/pci-sysfs.c
drivers/pci/pci.h
drivers/pci/probe.c