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 /platforms | |
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 'platforms')
-rw-r--r-- | platforms/astbmc/witherspoon.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/platforms/astbmc/witherspoon.c b/platforms/astbmc/witherspoon.c index 1caa2ed..b9ed277 100644 --- a/platforms/astbmc/witherspoon.c +++ b/platforms/astbmc/witherspoon.c @@ -457,8 +457,11 @@ static void phb4_pre_pci_fixup_witherspoon(void) slot0->ops.get_presence_state(slot0, &p0); if (slot1->ops.get_presence_state) slot1->ops.get_presence_state(slot1, &p1); - if (p0 == 1 && p1 == 1) + if (p0 == 1 && p1 == 1) { phb4_activate_shared_slot_witherspoon(chip1); + slot0->peer_slot = slot1; + slot1->peer_slot = slot0; + } } } |