diff options
author | Alistair Popple <alistair@popple.id.au> | 2017-05-05 17:37:13 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-05-10 14:32:20 +1000 |
commit | dc670cc0ab49d14ca07de0570a9fd824fcbe8ffe (patch) | |
tree | 663b199a59467b50e34c30d635a12ca7bc6e51b0 /hw/npu2.c | |
parent | f3a5741408a11be6992cf8779f2eae10b08c020a (diff) | |
download | skiboot-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } } |