Skip to content

Commit 7840b07

Browse files
danieldegrassedleach02
authored andcommitted
sd: increase SDMMC busy wait timeout
SDMMC busy wait timeout was incorrectly waiting for CONFIG_SD_DATA_TIMEOUT microseconds, but should be waiting for CONFIG_SD_DATA_TIMEOUT milliseconds. Multiply wait value by 1000. Signed-off-by: Daniel DeGrasse <[email protected]>
1 parent 5113c14 commit 7840b07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/sd/sdmmc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1172,7 +1172,7 @@ static int sdmmc_read_status(struct sd_card *card)
11721172
/* Waits for SD card to be ready for data. Returns 0 if card is ready */
11731173
static int sdmmc_wait_ready(struct sd_card *card)
11741174
{
1175-
int ret, timeout = CONFIG_SD_DATA_TIMEOUT;
1175+
int ret, timeout = CONFIG_SD_DATA_TIMEOUT * 1000;
11761176
bool busy = true;
11771177

11781178
do {

0 commit comments

Comments
 (0)