Commit 48972d90 authored by Committed by Andy Fleming
mmc: Implement card detection.
Check for card detect each time an MMC/SD device is initialized. If card detection is not implemented, this code behaves as before and continues assuming a card is present. If no card is detected, has_init is reset for the MMC/SD device (to force initialization next time) and an error is returned. Signed-off-by: Thierry Reding <firstname.lastname@example.org> Tested-by: Jason Liu <email@example.com>
Showing with 33 additions and 0 deletions