commit | b9c8b7793109e576981a1d9b6a520f64685e1041 | [log] [tgz] |
---|---|---|
author | Thierry Reding <thierry.reding@avionic-design.de> | Mon Jan 02 01:15:37 2012 +0000 |
committer | Andy Fleming <afleming@freescale.com> | Sun Jan 08 21:28:27 2012 -0600 |
tree | bfaf84d0cd7a3ed6e027e52cdd5cbf673ae788e7 | |
parent | d7aebf4b8ea5de837386b2bcf4e99c2a87161102 [diff] |
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 <thierry.reding@avionic-design.de> Tested-by: Jason Liu <jason.hui@linaro.org>