[PATCH 2/6] remoteproc: renesas: rsip: Improve error print

Marek Vasut via U-Boot <[email protected]>
Newsgroups gmane.comp.boot-loaders.u-boot
Message-ID <20260810223604.1333043-2-marek.vasut+renesas__3365.24682804651$1786401396$gmane$org@mailbox.org>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.