diff options
author | Oliver O'Halloran <oohall@gmail.com> | 2019-04-23 17:56:06 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2019-04-29 16:13:03 +1000 |
commit | 2e2157121aa1366a9a9756dfe889352e0c531609 (patch) | |
tree | 12d9a09fd12e7b3f8b6a1cf974e220c7f9f020fb | |
parent | d318cdb3863fcf92288528bfed3b6e435cf6f0ef (diff) | |
download | skiboot-2e2157121aa1366a9a9756dfe889352e0c531609.zip skiboot-2e2157121aa1366a9a9756dfe889352e0c531609.tar.gz skiboot-2e2157121aa1366a9a9756dfe889352e0c531609.tar.bz2 |
hw/phb4: Read ibm,loc-code from PBCQ node
On P9 the PBCQs are subdivided by stacks which implement the PCI Express
logic. When phb4 was forked from phb3 most of the properties that were
in the pbcq node moved into the stack node, but ibm,loc-code was not one
of them. This patch fixes the phb4 init sequence to read the base
location code from the PBCQ node (parent of the stack node) rather than
the stack node itself.
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
-rw-r--r-- | hw/phb4.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -5874,8 +5874,8 @@ static void phb4_probe_stack(struct dt_node *stk_node, uint32_t pec_index, dt_add_property_cells(np, "ibm,hub-id", hub_id); } - if (dt_has_node_property(stk_node, "ibm,loc-code", NULL)) { - const char *lc = dt_prop_get(stk_node, "ibm,loc-code"); + if (dt_has_node_property(stk_node->parent, "ibm,loc-code", NULL)) { + const char *lc = dt_prop_get(stk_node->parent, "ibm,loc-code"); dt_add_property_string(np, "ibm,loc-code", lc); } if (dt_has_node_property(stk_node, "ibm,lane-eq", NULL)) { |