[PATCH] spi: cadence-quadspi: Fix error message on stuck busy state

Jan Kiszka jan.kiszka at siemens.com
Mon Oct 30 17:20:29 CET 2023


From: Jan Kiszka <jan.kiszka at siemens.com>

We are not iterating CQSPI_REG_RETRY, we are waiting 'timeout' ms, since
day 1.

Signed-off-by: Jan Kiszka <jan.kiszka at siemens.com>
---

We are unfortunately seeing that message right now, rarely but then 
prominently...

 drivers/spi/cadence_qspi_apb.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/spi/cadence_qspi_apb.c b/drivers/spi/cadence_qspi_apb.c
index 9ce2c0f254f..d033184aa46 100644
--- a/drivers/spi/cadence_qspi_apb.c
+++ b/drivers/spi/cadence_qspi_apb.c
@@ -171,8 +171,7 @@ static unsigned int cadence_qspi_wait_idle(void *reg_base)
 	}
 
 	/* Timeout, still in busy mode. */
-	printf("QSPI: QSPI is still busy after poll for %d times.\n",
-	       CQSPI_REG_RETRY);
+	printf("QSPI: QSPI is still busy after poll for %d ms.\n", timeout);
 	return 0;
 }
 
-- 
2.35.3


More information about the U-Boot mailing list