diff mbox series

[06/19] libsbefifo: Fix marshalling for putscom chipop

Message ID 20200702033918.708013-7-amitay@ozlabs.org
State Accepted
Headers show
Series Fixes and cleanup before release | expand

Commit Message

Amitay Isaacs July 2, 2020, 3:39 a.m. UTC
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
---
 libsbefifo/cmd_scom.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/libsbefifo/cmd_scom.c b/libsbefifo/cmd_scom.c
index bb44e5e..935a00f 100644
--- a/libsbefifo/cmd_scom.c
+++ b/libsbefifo/cmd_scom.c
@@ -98,8 +98,8 @@  static int sbefifo_scom_put_push(uint64_t addr, uint64_t value, uint8_t **buf, u
 	msg[1] = htobe32(cmd);
 	msg[2] = htobe32(addr >> 32);
 	msg[3] = htobe32(addr & 0xffffffff);
-	msg[2] = htobe32(value >> 32);
-	msg[3] = htobe32(value & 0xffffffff);
+	msg[4] = htobe32(value >> 32);
+	msg[5] = htobe32(value & 0xffffffff);
 
 	*buf = (uint8_t *)msg;
 	return 0;