spi: cadence-quadspi: Fix error message on stuck busy state
PATCH 1/1 spi: cadence-quadspi: Fix error message on stuck busy state
From: Jan Kiszka <[email protected]>
We are not iterating CQSPI_REG_RETRY, we are waiting 'timeout' ms, since day 1.
---
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(-)
drivers/spi/cadence_qspi_apb.c +1 -2
@@ -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 ; }
Signature · 1 line
2.35.3
Quoted 6 lines · Jan Kiszka
From: Jan Kiszka <[email protected]>
We are not iterating
CQSPI_REG_RETRY, we are waiting 'timeout' ms, since day 1.Signed-off-by Jan Kiszka <[email protected]>
Thanks,
Stefan
Quoted 13 lines
---
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(-)drivers/spi/cadence_qspi_apb.c +0
-0
drivers/spi/cadence_qspi_apb.c static unsigned int cadence_qspi_wait_idle(void *reg_base) · line 177
Quoted 9 lines
drivers/spi/cadence_qspi_apb.c +1
-2@@ -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 ; }
Viele Grüße,
Stefan Roese
Signature · 3 lines
DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: [email protected]
Quoted 31 lines · Stefan Roese
Quoted 6 lines · Jan Kiszka
From: Jan Kiszka <[email protected]>
We are not iterating
CQSPI_REG_RETRY, we are waiting 'timeout' ms, since day 1.Signed-off-by Jan Kiszka <[email protected]>Reviewed-by Stefan Roese <[email protected]>Thanks,
StefanQuoted 18 lines
---
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(-)drivers/spi/cadence_qspi_apb.c +0
-1@@ -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",
Quoted 9 lines
Quoted 5 lines
drivers/spi/cadence_qspi_apb.c +1
-1- CQSPI_REG_RETRY); + printf("QSPI: QSPI is still busy after poll for %d ms.\n", timeout); return 0; }Viele Grüße,
Stefan Roese
Ping.
Jan
Signature · 2 lines
Siemens AG, Technology Linux Expert Center
Quoted 42 lines · Jan Kiszka
Quoted 31 lines · Stefan Roese
Quoted 6 lines · Jan Kiszka
From: Jan Kiszka <[email protected]>
We are not iterating
CQSPI_REG_RETRY, we are waiting 'timeout' ms, since day 1.Signed-off-by Jan Kiszka <[email protected]>Reviewed-by Stefan Roese <[email protected]>Thanks,
StefanQuoted 18 lines
---
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(-)drivers/spi/cadence_qspi_apb.c +0
-1@@ -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",Quoted 9 lines
Quoted 5 lines
drivers/spi/cadence_qspi_apb.c +1
-1- CQSPI_REG_RETRY); + printf("QSPI: QSPI is still busy after poll for %d ms.\n", timeout); return 0; }Viele Grüße,
Stefan Roese
Quoted 1 line
Ping.
Added to my dont-forget bundle.
Signature · 1 line
Tom
Quoted 8 lines · Jan Kiszka
From: Jan Kiszka <[email protected]>
We are not iterating
CQSPI_REG_RETRY, we are waiting 'timeout' ms, since day 1.Signed-off-by Jan Kiszka <[email protected]>---
Applied to u-boot-spi/master