Skip to contentSkip to conversation

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

PATCH In review Jan Kiszka 4 participants 5 messages Oct 30, 2023 – Dec 14, 2023 SPI

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

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
index 9ce2c0f254f..d033184aa46 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
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.

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
index 9ce2c0f254f..d033184aa46 100644

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]
author
#2 lore raw
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.

Thanks,
Stefan

Quoted 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
index 9ce2c0f254f..d033184aa46 100644
@@ -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
#3 lore raw
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.

Thanks,
Stefan

Quoted 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
index 9ce2c0f254f..d033184aa46 100644
@@ -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