aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver O'Halloran <oohall@gmail.com>2017-09-20 19:46:02 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-09-20 23:25:01 -0500
commit577b75727d9ee9d57e1468e52275a7d838bbabf0 (patch)
treeed6dc3e25e0d280b85cf7d5adb324640f90bfc40
parent768403ebcdf94d7667a47ba85d12debf0cb733dd (diff)
downloadskiboot-577b75727d9ee9d57e1468e52275a7d838bbabf0.zip
skiboot-577b75727d9ee9d57e1468e52275a7d838bbabf0.tar.gz
skiboot-577b75727d9ee9d57e1468e52275a7d838bbabf0.tar.bz2
hdata/smplink: Increment index of associated PHB
The PHB number of the NPU device needs to be incremented per-chip or bad things are going to occur. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> [stewart@linux.vnet.ibm.com: Reza found npu_index++ needed too] Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r--hdata/spira.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hdata/spira.c b/hdata/spira.c
index 7be53b9..7e88348 100644
--- a/hdata/spira.c
+++ b/hdata/spira.c
@@ -1508,7 +1508,7 @@ static void add_npus(void)
/* some hostboots will give us an empty array */
if (be32_to_cpu(links->ecnt))
- add_npu(xscom, links, npu_index, phb_index);
+ add_npu(xscom, links, npu_index++, phb_index++);
}
}