Skip to content

Commit cfb6396

Browse files
committed
Peer review fix
1 parent e02e567 commit cfb6396

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/sdhci.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -604,11 +604,12 @@ static int sdcard_power_init_seq(uint32_t voltage)
604604
break;
605605
udelay(10000); /* 10ms between retries */
606606
}
607-
#ifdef DEBUG_SDHCI
608-
if (retries > 0 && status == 0) {
607+
if (status != 0) {
608+
wolfBoot_printf("SD: CMD0 failed after %d retries\n", retries);
609+
}
610+
else if (retries > 0) {
609611
wolfBoot_printf("SD: CMD0 succeeded after %d retries\n", retries);
610612
}
611-
#endif
612613
if (status == 0) {
613614
/* send the operating conditions command */
614615
status = sdhci_cmd(SD_CMD8_SEND_IF_COND, SD_IF_COND_27V_33V,

0 commit comments

Comments
 (0)