mmcsd: Fix mmc card error but system can not catch it

Signed-off-by: anjianjun <anjianjun@xiaomi.com>
This commit is contained in:
anjianjun 2021-11-22 16:27:32 +08:00 committed by Petro Karashchenko
parent fc030d846c
commit 75ec6dffb6
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}