diff options
author | Russell Currey <ruscur@russell.cc> | 2017-11-20 17:32:12 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-11-21 21:05:06 -0600 |
commit | 93cde639b56e927d96e102186f1ec862a4a1b671 (patch) | |
tree | 36ebb8083401adc40a3fb5c61f00b3b97cbb890b /core/pci-slot.c | |
parent | 646dbfbec2870f81297e6a01da3f47712068364a (diff) | |
download | skiboot-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.c | 1 |
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; |