Skip to content
Commit 5ebdb445 authored by Can Guo's avatar Can Guo
Browse files

mmc: core: detect change in resume if a new card is found



When system is in deep sleep, SD card detection is
not functioning. Meanwhile, as deferred resume is
enabled, if the inserted SD card is changed with
another different SD card during system deep sleep,
the card shall not be resumed till it is accessed
after system is braught out of deep sleep. However,
since the card is changed, the resume procedure will
fail because card init returns -ENONT. Thus, the old
card remains there but any access to it would fail,
meanwhile the new card cannot be recognized. This
change fixes it by calling SD card detect if a
different card is found during resume procedure.

Change-Id: I47329e256531769e4f5abde6c5edb3861270d6e2
Signed-off-by: default avatarCan Guo <cang@codeaurora.org>
parent 309f15d8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment