diff --git a/drivers/mmcsd/mmcsd_sdio.c b/drivers/mmcsd/mmcsd_sdio.c index 93bfa5a0e4..8cf5c72081 100644 --- a/drivers/mmcsd/mmcsd_sdio.c +++ b/drivers/mmcsd/mmcsd_sdio.c @@ -3365,6 +3365,12 @@ static int mmcsd_iocmd(FAR struct mmcsd_state_s *priv, opcode = ic_ptr->opcode & MMCSD_CMDIDX_MASK; switch (opcode) { + case MMCSD_CMDIDX0: /* Reset card to idle state */ + { + mmcsd_sendcmdpoll(priv, MMCSD_CMD0, ic_ptr->arg); + MMCSD_USLEEP(MMCSD_IDLE_DELAY); + } + break; case MMCSD_CMDIDX2: /* Get cid reg data */ { memcpy((FAR void *)(uintptr_t)ic_ptr->data_ptr,