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 <daniel.degrasse@nxp.com>
This commit is contained in:
parent
5113c1418d
commit
7840b07121
1 changed files with 1 additions and 1 deletions
|
@ -1172,7 +1172,7 @@ static int sdmmc_read_status(struct sd_card *card)
|
|||
/* Waits for SD card to be ready for data. Returns 0 if card is ready */
|
||||
static int sdmmc_wait_ready(struct sd_card *card)
|
||||
{
|
||||
int ret, timeout = CONFIG_SD_DATA_TIMEOUT;
|
||||
int ret, timeout = CONFIG_SD_DATA_TIMEOUT * 1000;
|
||||
bool busy = true;
|
||||
|
||||
do {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue