PCI: Make rescan bus increase bridge resource size if needed
authorYinghai Lu <yinghai@kernel.org>
Sat, 21 Jan 2012 10:08:22 +0000 (02:08 -0800)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 14 Feb 2012 16:44:53 +0000 (08:44 -0800)
commit2f320521a0d2d11fb857be09d05e2fbbf3ef8c13
tree9b8d91f3d64f383405511c33fd4d9c5d4aaa20c2
parent8424d7592eab8245b51051ee458e598213bca3b2
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>
drivers/pci/pci-sysfs.c
drivers/pci/probe.c
include/linux/pci.h