summaryrefslogtreecommitdiffstats
path: root/include/linux/pci.h
diff options
context:
space:
mode:
authorYinghai Lu <yinghai@kernel.org>2012-01-21 02:08:22 -0800
committerJesse Barnes <jbarnes@virtuousgeek.org>2012-02-14 08:44:53 -0800
commit2f320521a0d2d11fb857be09d05e2fbbf3ef8c13 (patch)
tree9b8d91f3d64f383405511c33fd4d9c5d4aaa20c2 /include/linux/pci.h
parent8424d7592eab8245b51051ee458e598213bca3b2 (diff)
downloadlinux-2f320521a0d2d11fb857be09d05e2fbbf3ef8c13.tar.gz
linux-2f320521a0d2d11fb857be09d05e2fbbf3ef8c13.tar.bz2
linux-2f320521a0d2d11fb857be09d05e2fbbf3ef8c13.zip
PCI: Make rescan bus increase bridge resource size if needed
Current rescan will not touch bridge MMIO and IO. Try to reuse pci_assign_unassigned_bridge_resources(bridge) to update bridge resources, if child devices need more resources. Only do that for bridges whose children are all removed already; i.e. don't release resources that could already be in use by drivers on child devices. Signed-off-by: Yinghai Lu <yinghai@kernel.org> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r--include/linux/pci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index f44276049f4a..87507aadf9a2 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -882,6 +882,7 @@ void set_pcie_hotplug_bridge(struct pci_dev *pdev);
/* Functions for PCI Hotplug drivers to use */
int pci_bus_find_capability(struct pci_bus *bus, unsigned int devfn, int cap);
#ifdef CONFIG_HOTPLUG
+unsigned int pci_rescan_bus_bridge_resize(struct pci_dev *bridge);
unsigned int pci_rescan_bus(struct pci_bus *bus);
#endif