In case of SCMI protocol error, print SCMI domain number and error
code both as hexadecimal and decimal to make it easier to interpret
the error.

Signed-off-by: Marek Vasut <[email protected]>
---
Cc: Nobuhiro Iwamatsu <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: [email protected]
---
 drivers/remoteproc/renesas_rsip.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/remoteproc/renesas_rsip.c 
b/drivers/remoteproc/renesas_rsip.c
index 68b775e5f82..cabcc2822bd 100644
--- a/drivers/remoteproc/renesas_rsip.c
+++ b/drivers/remoteproc/renesas_rsip.c
@@ -129,8 +129,10 @@ static void scp_cpu_core_start(const u32 core, const u32 
ep)
 
        /* Read back the result */
        status = readl((uintptr_t)shmem->payload);
-       if (status)
-               printf("SCP POWER_STATE_SET failed, status=0x%x\n", status);
+       if (status) {
+               printf("SCP POWER_STATE_SET domain %d failed, status=0x%x 
(%d)\n",
+                      scmi_parameter.domain_id, status, status);
+       }
 }
 
 /**
-- 
2.53.0

Reply via email to