diff mbox series

[10/18] libsbefifo: P10 dropped put_ring_from_image chipop

Message ID 20200924044236.130586-11-amitay@ozlabs.org
State Superseded
Headers show
Series Add p10 support to libpdbg | expand

Commit Message

Amitay Isaacs Sept. 24, 2020, 4:42 a.m. UTC
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
---
 libsbefifo/cmd_ring.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Joel Stanley Sept. 28, 2020, 5:57 a.m. UTC | #1
On Thu, 24 Sep 2020 at 04:43, Amitay Isaacs <amitay@ozlabs.org> wrote:
>
> 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 --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;
> --
> 2.26.2
>
> --
> Pdbg mailing list
> Pdbg@lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/pdbg
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;