aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver O'Halloran <oohall@gmail.com>2019-04-23 17:56:06 +1000
committerStewart Smith <stewart@linux.ibm.com>2019-04-29 16:13:03 +1000
commit2e2157121aa1366a9a9756dfe889352e0c531609 (patch)
tree12d9a09fd12e7b3f8b6a1cf974e220c7f9f020fb
parentd318cdb3863fcf92288528bfed3b6e435cf6f0ef (diff)
downloadskiboot-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/phb4.c b/hw/phb4.c
index 52aedc8..716ca72 100644
--- a/hw/phb4.c
+++ b/hw/phb4.c
@@ -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)) {