aboutsummaryrefslogtreecommitdiff
path: root/core/pci-slot.c
diff options
context:
space:
mode:
authorRussell Currey <ruscur@russell.cc>2017-11-20 17:32:12 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-11-21 21:05:06 -0600
commit93cde639b56e927d96e102186f1ec862a4a1b671 (patch)
tree36ebb8083401adc40a3fb5c61f00b3b97cbb890b /core/pci-slot.c
parent646dbfbec2870f81297e6a01da3f47712068364a (diff)
downloadskiboot-93cde639b56e927d96e102186f1ec862a4a1b671.zip
skiboot-93cde639b56e927d96e102186f1ec862a4a1b671.tar.gz
skiboot-93cde639b56e927d96e102186f1ec862a4a1b671.tar.bz2
pci: Track peers of slots
Witherspoon introduced a new concept where one physical slot is shared between two PHBs. Making a slot aware of its peer enables syncing between them where necessary. Signed-off-by: Russell Currey <ruscur@russell.cc> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core/pci-slot.c')
-rw-r--r--core/pci-slot.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/pci-slot.c b/core/pci-slot.c
index 6d3ed6c..8bddc14 100644
--- a/core/pci-slot.c
+++ b/core/pci-slot.c
@@ -178,6 +178,7 @@ struct pci_slot *pci_slot_alloc(struct phb *phb,
slot->power_state = PCI_SLOT_POWER_ON;
slot->ops.run_sm = pci_slot_run_sm;
slot->ops.prepare_link_change = pci_slot_prepare_link_change;
+ slot->peer_slot = NULL;
if (!pd) {
slot->id = PCI_PHB_SLOT_ID(phb);
phb->slot = slot;