From 75ec6dffb695f90b8d5067fb179f84b5bc8341c8 Mon Sep 17 00:00:00 2001 From: anjianjun Date: Mon, 22 Nov 2021 16:27:32 +0800 Subject: [PATCH] mmcsd: Fix mmc card error but system can not catch it Signed-off-by: anjianjun --- drivers/mmcsd/mmcsd_sdio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mmcsd/mmcsd_sdio.c b/drivers/mmcsd/mmcsd_sdio.c index 89b33ac14d..da9dfc3d41 100644 --- a/drivers/mmcsd/mmcsd_sdio.c +++ b/drivers/mmcsd/mmcsd_sdio.c @@ -3266,6 +3266,7 @@ static int mmcsd_cardidentify(FAR struct mmcsd_state_s *priv) if (elapsed >= TICK_PER_SEC || priv->type == MMCSD_CARDTYPE_UNKNOWN) { + priv->type = MMCSD_CARDTYPE_UNKNOWN; ferr("ERROR: Failed to identify card\n"); return -EIO; }