aboutsummaryrefslogtreecommitdiff
path: root/hw/npu2.c
diff options
context:
space:
mode:
authorAlistair Popple <alistair@popple.id.au>2017-05-05 17:37:13 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-05-10 14:32:20 +1000
commitdc670cc0ab49d14ca07de0570a9fd824fcbe8ffe (patch)
tree663b199a59467b50e34c30d635a12ca7bc6e51b0 /hw/npu2.c
parentf3a5741408a11be6992cf8779f2eae10b08c020a (diff)
downloadskiboot-dc670cc0ab49d14ca07de0570a9fd824fcbe8ffe.zip
skiboot-dc670cc0ab49d14ca07de0570a9fd824fcbe8ffe.tar.gz
skiboot-dc670cc0ab49d14ca07de0570a9fd824fcbe8ffe.tar.bz2
npu2: Fix argument order to npu2_scom_write in BAR setup
The arguments to npu2_scom_write() in npu2_write_bar() resulting in incorrect BAR setup in some circumstances. This patch swaps the arguments so they are correct. Signed-off-by: Alistair Popple <alistair@popple.id.au> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw/npu2.c')
-rw-r--r--hw/npu2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/npu2.c b/hw/npu2.c
index a8560cf..e39782a 100644
--- a/hw/npu2.c
+++ b/hw/npu2.c
@@ -196,7 +196,7 @@ static void npu2_write_bar(struct npu2 *p,
if (p)
npu2_write(p, reg, val);
else
- npu2_scom_write(gcid, scom, reg, val, NPU2_MISC_DA_LEN_8B);
+ npu2_scom_write(gcid, scom, reg, NPU2_MISC_DA_LEN_8B, val);
}
}