mmc: core: Remove SD card upon recovery failure
In case of bad SD card recovery fails everytime.
Also some SD cards fail on Read/writes but can get initialized
successfully.
Mark card as removed and gracefully remove by calling
mmc_detect_change. Also mark the card as corrupted and return
to avoid reinitialization as sdhci_get_cd will return non zero as the
card is physically present and avoid mmc_rescan from proceeding ahead.
Change-Id: Id4c99d4608ef2b5f49cf5ac796a2aaf6d12a56c2
Signed-off-by:
Sarthak Garg <sartgarg@codeaurora.org>
Loading
Please register or sign in to comment