aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Zyngier <maz@kernel.org>2023-10-22 14:11:29 +0100
committerMarc Zyngier <maz@kernel.org>2023-10-22 14:13:00 +0100
commitdef63190f801a0025c6e6e12a3f332a667d594e1 (patch)
treee42b5ff09005f9f57338d1cda9530121115db31f
parent7553cdb24d557b0b18e797180bd72d58ff227a18 (diff)
downloadcs-sw-def63190f801a0025c6e6e12a3f332a667d594e1.tar.gz
Display FUSB302 ID register on probe failure
Signed-off-by: Marc Zyngier <maz@kernel.org>
-rw-r--r--vdmtool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vdmtool.c b/vdmtool.c
index ae3abec..18344d7 100644
--- a/vdmtool.c
+++ b/vdmtool.c
@@ -677,7 +677,7 @@ void m1_pd_bmc_fusb_setup(unsigned int port,
tcpc_read(PORT(cxt), TCPC_REG_DEVICE_ID, &reg);
if (!(reg & 0x80)) {
- cprintf(cxt, "Invalid device ID. Is the FUSB302 alive?\n");
+ cprintf(cxt, "Invalid device ID %04x. Is the FUSB302 alive?\n", reg);
cxt->hw = NULL;
return;
}