aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorGavin Shan <gwshan@linux.vnet.ibm.com>2016-06-10 15:03:40 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-06-14 16:00:16 +1000
commitcc406eb92d69690e26c3c5f52f48060c6c8c0b43 (patch)
treee73788c4a0d0d07fc6fa96e29f2e6c4d0bc03ffd /core
parent72552138f07fb29dd7f4ceb0831f492e71b060d0 (diff)
downloadskiboot-cc406eb92d69690e26c3c5f52f48060c6c8c0b43.zip
skiboot-cc406eb92d69690e26c3c5f52f48060c6c8c0b43.tar.gz
skiboot-cc406eb92d69690e26c3c5f52f48060c6c8c0b43.tar.bz2
core/pci: Extend pci_restore_bridge_buses() for PCI slot
Currently, pci_restore_bridge_buses() restores the assigned bus ranges for all PCI bridges behind the specified PHB. This extends the function and allows doing same thing for the PCI bridges behind the specified slot. The extended functionality is going to be used by PCI hotplug logic in the subsequent patches. Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com> Reviewed-by: Russell Currey <ruscur@russell.cc> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core')
-rw-r--r--core/pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/pci.c b/core/pci.c
index 4311b97..05d2fa7 100644
--- a/core/pci.c
+++ b/core/pci.c
@@ -1635,9 +1635,9 @@ static int __pci_restore_bridge_buses(struct phb *phb,
return 0;
}
-void pci_restore_bridge_buses(struct phb *phb)
+void pci_restore_bridge_buses(struct phb *phb, struct pci_device *pd)
{
- pci_walk_dev(phb, NULL, __pci_restore_bridge_buses, NULL);
+ pci_walk_dev(phb, pd, __pci_restore_bridge_buses, NULL);
}
struct pci_cfg_reg_filter *pci_find_cfg_reg_filter(struct pci_device *pd,