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: Can Guo <cang@codeaurora.org>
Loading
Please register or sign in to comment