You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ac...@apache.org on 2021/07/28 11:34:20 UTC
[incubator-nuttx] branch master updated: drivers/mmcsd:Send cmd0
just once for Increased compatibility
This is an automated email from the ASF dual-hosted git repository.
acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 2866c27 drivers/mmcsd:Send cmd0 just once for Increased compatibility
2866c27 is described below
commit 2866c27c198c73779df83432b3c1a7758ab884fd
Author: anjianjun <an...@xiaomi.com>
AuthorDate: Wed Jul 28 12:28:33 2021 +0800
drivers/mmcsd:Send cmd0 just once for Increased compatibility
Signed-off-by: anjianjun <an...@xiaomi.com>
---
drivers/mmcsd/mmcsd_sdio.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/mmcsd/mmcsd_sdio.c b/drivers/mmcsd/mmcsd_sdio.c
index a94a526..130627c 100644
--- a/drivers/mmcsd/mmcsd_sdio.c
+++ b/drivers/mmcsd/mmcsd_sdio.c
@@ -3096,10 +3096,9 @@ static int mmcsd_cardidentify(FAR struct mmcsd_state_s *priv)
up_udelay(MMCSD_POWERUP_DELAY);
- /* Then send CMD0 (twice just to be sure) */
+ /* Then send CMD0 just once is standard procedure */
mmcsd_sendcmdpoll(priv, MMCSD_CMD0, 0);
- mmcsd_sendcmdpoll(priv, MMCSD_CMD0, 0);
up_udelay(MMCSD_IDLE_DELAY);
#ifdef CONFIG_MMCSD_MMCSUPPORT