Re: [U-Boot] [PATCH 1/2] esdhc: memset mmc struct before putting into use

2013-10-27 Thread Zhang Haijun
Thanks. Barnett :-) 于 2013/10/26 0:28, Ryan Barnett 写道: Haijun Zhang wrote on 10/24/2013 08:54:42 PM: 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

Re: [U-Boot] [PATCH 1/2] esdhc: memset mmc struct before putting into use

2013-10-25 Thread Ryan Barnett
Haijun Zhang wrote on 10/24/2013 08:54:42 PM: > 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 T424

[U-Boot] [PATCH 1/2] esdhc: memset mmc struct before putting into use

2013-10-24 Thread Haijun Zhang
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 OE

[U-Boot] [PATCH 1/2] esdhc: memset mmc struct before putting into use

2013-10-24 Thread Haijun Zhang
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 OE