d570a93945
mmcsd_removed will be called if the card is in invalid state. This can happen if the card is bad, or vibrations causes a power loss. mmcsd_removed resets: priv->capacity = 0; /* Capacity=0 sometimes means no media */ priv->blocksize = 0; priv->probed = false; priv->mediachanged = false; priv->wrbusy = false; priv->type = MMCSD_CARDTYPE_UNKNOWN; priv->rca = 0; priv->selblocklen = 0; priv->widebus = false; If blocksize is set to 0 will cause the log2 to result in an infinate loop in some drivers. IS_EMPTY will check for priv->type = MMCSD_CARDTYPE_UNKNOWN and return ENODEV. |
||
---|---|---|
.. | ||
Kconfig | ||
Make.defs | ||
mmcsd_csd.h | ||
mmcsd_debug.c | ||
mmcsd_sdio.c | ||
mmcsd_sdio.h | ||
mmcsd_spi.c | ||
mmcsd_spi.h | ||
mmcsd.h | ||
sdio.c |