Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 48686b39 authored by Sarthak Garg's avatar Sarthak Garg
Browse files

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: default avatarSarthak Garg <sartgarg@codeaurora.org>
parent 5168327a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment