diff options
author | Oliver O'Halloran <oohall@gmail.com> | 2017-12-07 17:28:16 -0600 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2018-02-20 00:09:22 -0600 |
commit | 7a1f035b57ab83ec980c487a03c333e2bca8362c (patch) | |
tree | 5dac9308801359a573031bda00408c101643e0e5 /hdata | |
parent | 00eaf79e5da96db7f59ba0a7e683abe48ce02583 (diff) | |
download | talos-skiboot-7a1f035b57ab83ec980c487a03c333e2bca8362c.tar.gz talos-skiboot-7a1f035b57ab83ec980c487a03c333e2bca8362c.zip |
hdata/iohub: Use only wildcard slots for pluggables
We don't want to cause a VID:DID check against pluggable devices, as
they may use multiple devids.
Narrow the condition under which VID:DID is listed in the dt, so that
we'll end up creating a wildcard slot for these instead.
Cc: stable # 5.9.x
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Reza Arbab <arbab@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hdata')
-rw-r--r-- | hdata/iohub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hdata/iohub.c b/hdata/iohub.c index a5f12fd1..2260f600 100644 --- a/hdata/iohub.c +++ b/hdata/iohub.c @@ -705,7 +705,7 @@ static void parse_one_slot(const struct slot_map_entry *entry, st_name(type), vid, did); /* The VID:DID is only meaningful for builtins and switches */ - if (vid && did) { + if (type == st_sw_upstream && vid && did) { node = dt_new_2addr(parent, st_name(type), vid, did); dt_add_property_cells(node, "reg", vid, did); } else { |