aboutsummaryrefslogtreecommitdiff
path: root/hw/phb3.c
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 /hw/phb3.c
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 'hw/phb3.c')
-rw-r--r--hw/phb3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/phb3.c b/hw/phb3.c
index ae4db6e..110d9f2 100644
--- a/hw/phb3.c
+++ b/hw/phb3.c
@@ -2093,7 +2093,7 @@ static void phb3_setup_for_link_up(struct phb3 *p)
*/
if (p->flags & PHB3_RESTORE_BUS_NUM) {
p->flags &= ~PHB3_RESTORE_BUS_NUM;
- pci_restore_bridge_buses(&p->phb);
+ pci_restore_bridge_buses(&p->phb, NULL);
}
}