]> git.karo-electronics.de Git - karo-tx-linux.git/commit
PCI: Only call pci_stop_bus_device() one time for child devices at remove
authorYinghai Lu <yinghai.lu@oracle.com>
Wed, 23 Nov 2011 05:06:53 +0000 (21:06 -0800)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 13 Dec 2011 18:42:08 +0000 (10:42 -0800)
commit3a1ffc8d5b71a75c5f40a5159b898d3052ff848e
tree7a473879bb4e010c48d37baa689f63f6ac9e66e4
parent2c62942db2d045a8aff7830a6d998d1de3fdde96
PCI: Only call pci_stop_bus_device() one time for child devices at remove

During debugging pcie hotplug with SRIOV with pcie switch, I found
pci_stop_bus_device() is called several times for some child devices.

So change original pci_remove_bus_device() to __pci_remove_bus_device(),
and make it only do remove work, and add a new pci_remove_bus_device
that calls pci_stop_bus_device() one time, and then call
__pci_remove_bus_device().

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/remove.c