diff mbox series

[v2,12/20] libsbefifo: P10 dropped put_ring_from_image chipop

Message ID 20201001070814.102735-13-amitay@ozlabs.org
State New
Headers show
Series Add p10 support to libpdbg | expand

Commit Message

Amitay Isaacs Oct. 1, 2020, 7:08 a.m. UTC
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
Reviewed-by: Joel Stanley <joel@jms.id.au>
---
 libsbefifo/cmd_ring.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/libsbefifo/cmd_ring.c b/libsbefifo/cmd_ring.c
index c1c0ec2..44e8eff 100644
--- a/libsbefifo/cmd_ring.c
+++ b/libsbefifo/cmd_ring.c
@@ -178,6 +178,9 @@  int sbefifo_ring_put_from_image(struct sbefifo_context *sctx, uint16_t target, u
 	uint32_t msg_len, out_len;
 	int rc;
 
+	if (sctx->proc != SBEFIFO_PROC_P9)
+		return ENOSYS;
+
 	rc = sbefifo_ring_put_from_image_push(target, chiplet_id, ring_id, ring_mode, &msg, &msg_len);
 	if (rc)
 		return rc;