]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
spi: cadence-quadspi: Fix error message on stuck busy state
authorJan Kiszka <jan.kiszka@siemens.com>
Mon, 30 Oct 2023 16:20:29 +0000 (17:20 +0100)
committerJagan Teki <jagan@edgeble.ai>
Thu, 14 Dec 2023 18:26:19 +0000 (23:56 +0530)
We are not iterating CQSPI_REG_RETRY, we are waiting 'timeout' ms, since
day 1.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Reviewed-by: Stefan Roese <sr@denx.de>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
drivers/spi/cadence_qspi_apb.c

index 9ce2c0f254f3410a3b6373543698d9f6c6c5b09d..d033184aa466c55bb794263d8103fabf9bb0b0c7 100644 (file)
@@ -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;
 }