]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
mmc: Implement card detection.
authorThierry Reding <thierry.reding@avionic-design.de>
Mon, 2 Jan 2012 01:15:37 +0000 (01:15 +0000)
committerAndy Fleming <afleming@freescale.com>
Mon, 9 Jan 2012 03:28:27 +0000 (21:28 -0600)
commit48972d907a28de17c2a5108a3ee3d5f3eb434376
treebfaf84d0cd7a3ed6e027e52cdd5cbf673ae788e7
parent314284b1567f1ce29c19060641e7f213146f7ab8
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>
15 files changed:
drivers/mmc/arm_pl180_mmci.c
drivers/mmc/bfin_sdh.c
drivers/mmc/davinci_mmc.c
drivers/mmc/ftsdc010_esdhc.c
drivers/mmc/gen_atmel_mci.c
drivers/mmc/mmc.c
drivers/mmc/mmc_spi.c
drivers/mmc/mxcmmc.c
drivers/mmc/mxsmmc.c
drivers/mmc/omap_hsmmc.c
drivers/mmc/pxa_mmc_gen.c
drivers/mmc/s5p_mmc.c
drivers/mmc/sdhci.c
drivers/mmc/sh_mmcif.c
include/mmc.h