From: Jan Kiszka Date: Mon, 30 Oct 2023 16:20:29 +0000 (+0100) Subject: spi: cadence-quadspi: Fix error message on stuck busy state X-Git-Url: http://git.dujemihanovic.xyz/%22/img/sics.gif/%22/static/git-favicon.png?a=commitdiff_plain;h=959a4a0838acf7ef733e000d1304cea6711b8945;p=u-boot.git 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 --- 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; }