diff options
| author | weety <[email protected]> | 2015-06-22 21:28:42 +0800 |
|---|---|---|
| committer | weety <[email protected]> | 2015-06-22 21:28:42 +0800 |
| commit | 28f2fbd4cc058e8eabe06ef18aed8564adaa2244 (patch) | |
| tree | b7121933cd9bb5a8228d122adaa21af080351aa5 /components/drivers | |
| parent | 41597e8793e4ac22dd9e27fe609eadf2d7d671ef (diff) | |
1.Fixed sdmmc cmd retries issue;
Diffstat (limited to 'components/drivers')
| -rw-r--r-- | components/drivers/sdio/mmc.c | 2 | ||||
| -rw-r--r-- | components/drivers/sdio/mmcsd_core.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/components/drivers/sdio/mmc.c b/components/drivers/sdio/mmc.c index badc75fcfd..e537c7dd3b 100644 --- a/components/drivers/sdio/mmc.c +++ b/components/drivers/sdio/mmc.c @@ -580,7 +580,7 @@ remove_card: host->card = RT_NULL; err: - rt_kprintf("init SD card failed\n"); + rt_kprintf("init MMC card failed\n"); return err; } diff --git a/components/drivers/sdio/mmcsd_core.c b/components/drivers/sdio/mmcsd_core.c index 90599dca1f..57f38371b2 100644 --- a/components/drivers/sdio/mmcsd_core.c +++ b/components/drivers/sdio/mmcsd_core.c @@ -81,7 +81,7 @@ void mmcsd_send_request(struct rt_mmcsd_host *host, struct rt_mmcsd_req *req) rt_sem_take(&host->sem_ack, RT_WAITING_FOREVER); - } while(req->cmd->err && req->cmd->retries); + } while(req->cmd->err && (req->cmd->retries > 0)); } |
