Re: [U-Boot] [PATCH] cmd_mmc.c: check mmc_init() during mmc dev

2014-05-20 Thread Bryan Wu
On Tue, May 20, 2014 at 9:55 AM, Stephen Warren wrote: > On 05/19/2014 06:17 PM, Bryan Wu wrote: >> mmc dev ${devnum} will return 0 as success even if there is no card >> inserted. Booting script like tegra-common-post.h will call mmc dev >> ${devnum} to check the mmc device status, it always retu

Re: [U-Boot] [PATCH] cmd_mmc.c: check mmc_init() during mmc dev

2014-05-20 Thread Stephen Warren
On 05/19/2014 06:17 PM, Bryan Wu wrote: > mmc dev ${devnum} will return 0 as success even if there is no card > inserted. Booting script like tegra-common-post.h will call mmc dev > ${devnum} to check the mmc device status, it always return 0 even if > mmc_init() fails. > > Check mmc_init() return

[U-Boot] [PATCH] cmd_mmc.c: check mmc_init() during mmc dev

2014-05-19 Thread Bryan Wu
mmc dev ${devnum} will return 0 as success even if there is no card inserted. Booting script like tegra-common-post.h will call mmc dev ${devnum} to check the mmc device status, it always return 0 even if mmc_init() fails. Check mmc_init() return value let mmc dev command return failure when mmc_i