u-boot/drivers/mmc
Haijun.Zhang a54d681132 esdhc: memset mmc struct before putting into use
struct mmc should be clear to all '0' after malloc to avoid
unexpect variable value.

Like mmc->has_init = xxx.
In this case mmcinfo will believe the card had been initialized before
and skip the initialization.

Test on P5040 and T4240,
Error Log:

=> mmcinfo
Device: FSL_SDHC
Manufacturer ID: 0
OEM: 0
Name: Tran Speed: 0
Rd Block Len: 0
MMC version 0.0
High Capacity: No
Capacity: 0 Bytes
Bus Width: 0-bit
=>

Signed-off-by: Haijun Zhang <Haijun.Zhang@freescale.com>
Signed-off-by: Xie Shaohui-B21989 <B21989@freescale.com>
Tested-by: Ryan Barnett <rjbarnet@rockwellcollins.com>
Acked-by: Pantelis Antoniou <panto@antoniou-consulting.com>
2013-10-31 09:55:34 +02:00
..
arm_pl180_mmci.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
arm_pl180_mmci.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
bcm2835_sdhci.c ARM: bcm2835: fix get_timer() to return ms 2013-04-04 08:14:54 +02:00
bfin_sdh.c Merge u-boot/master into u-boot-ti/master 2013-03-11 12:16:13 -04:00
davinci_mmc.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
dw_mmc.c DWMMC: SMDK5420: Disable SMU for eMMC 2013-10-31 09:55:33 +02:00
exynos_dw_mmc.c DWMMC: SMDK5420: Disable SMU for eMMC 2013-10-31 09:55:33 +02:00
fsl_esdhc.c esdhc: memset mmc struct before putting into use 2013-10-31 09:55:34 +02:00
fsl_esdhc_spl.c SPDX-License-Identifier: clean up license header 2013-08-20 10:15:37 -07:00
ftsdc010_mci.c Merge branch 'master' of git://git.denx.de/u-boot-nds32 2013-07-25 08:51:51 -04:00
gen_atmel_mci.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
Makefile mmc: don't support write & erase for SPL builds 2013-09-20 18:58:55 +03:00
mmc.c mmc: Fix erase_grp_size for partitioned card 2013-10-31 09:55:33 +02:00
mmc_private.h mmc: don't support write & erase for SPL builds 2013-09-20 18:58:55 +03:00
mmc_spi.c mmc: add support for write protection 2013-03-08 16:41:13 -05:00
mmc_write.c mmc: don't support write & erase for SPL builds 2013-09-20 18:58:55 +03:00
mv_sdhci.c mmc: sdhci: return error when failed add_sdhci(). 2013-05-06 16:26:24 -05:00
mxcmmc.c mmc: add support for write protection 2013-03-08 16:41:13 -05:00
mxsmmc.c mmc: mxsmmc: Enable MMC HC support 2013-08-23 15:53:21 +02:00
omap_hsmmc.c ARM: OMAP: Enable 8-bit eMMC access for OMAP4/5/DRA7xx 2013-09-17 20:03:44 +03:00
pxa_mmc.h pxa: move mmc drivers to drivers/mmc 2009-02-20 03:47:50 +01:00
pxa_mmc_gen.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
s5p_sdhci.c mmc: sdhci: use the SDHCI_QUIRK_USE_WIDE8 for samsung SoC 2013-09-17 20:03:43 +03:00
sdhci.c mmc: sdhci: Avoid commands errors by simple timeout adaptation. 2013-10-31 09:55:33 +02:00
sh_mmcif.c mmc: add support for write protection 2013-03-08 16:41:13 -05:00
sh_mmcif.h mmc: sh_mmcif: add support for Renesas MMCIF 2011-07-15 20:29:21 -05:00
spear_sdhci.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
tegra_mmc.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
zynq_sdhci.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00