aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlistair Popple <alistair@popple.id.au>2017-06-21 16:31:08 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-06-21 18:00:09 +1000
commitbda7cc4d0354eb3f66629d410b2afc08c79f795f (patch)
tree883c6321c8c7a1e8e4acccdbafd99584a8c1f396
parenta2df920ec740f3ada4a75748aa3420a449d0cc41 (diff)
downloadskiboot-bda7cc4d0354eb3f66629d410b2afc08c79f795f.zip
skiboot-bda7cc4d0354eb3f66629d410b2afc08c79f795f.tar.gz
skiboot-bda7cc4d0354eb3f66629d410b2afc08c79f795f.tar.bz2
platforms/astbmc/slots.c: Allow comparison of bus numbers when matching slots
When matching devices on multiple down stream PLX busses we need to compare more than just the device-id of the PCIe BDFN, so increase the mask to do so. Signed-off-by: Alistair Popple <alistair@popple.id.au> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r--platforms/astbmc/slots.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/platforms/astbmc/slots.c b/platforms/astbmc/slots.c
index 8be7426..a2bec87 100644
--- a/platforms/astbmc/slots.c
+++ b/platforms/astbmc/slots.c
@@ -77,7 +77,7 @@ static const struct slot_table_entry *match_slot_dev_entry(struct phb *phb,
if (ent->etype == st_npu_slot)
bdfn = pd->bdfn & 0xf8;
else
- bdfn = pd->bdfn & 0xff;
+ bdfn = pd->bdfn & 0xffff;
if (ent->location == bdfn)
return ent;