From 959a4a0838acf7ef733e000d1304cea6711b8945 Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Mon, 30 Oct 2023 17:20:29 +0100 Subject: [PATCH] spi: cadence-quadspi: Fix error message on stuck busy state We are not iterating CQSPI_REG_RETRY, we are waiting 'timeout' ms, since day 1. Signed-off-by: Jan Kiszka Reviewed-by: Stefan Roese Reviewed-by: Jagan Teki --- 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 9ce2c0f254..d033184aa4 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.39.5