]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
mmc: Fix splitting device initialization
authorAndrew Gabbasov <andrew_gabbasov@mentor.com>
Thu, 19 Mar 2015 12:44:07 +0000 (07:44 -0500)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:37:10 +0000 (22:37 +0200)
commitcc4c78074adc6044e06222d00de27fee7b7900f8
tree8d556beda48c317e2311259d34e24a86da8918b4
parent56d71cb21fd5a94db1bfd31431068f7d1e377204
mmc: Fix splitting device initialization

Starting part of device initialization sets the init_in_progress flag
only if the MMC card did not yet come to ready state and needs to continue
polling. If the card is SD or if the MMC card became ready quickly,
the flag is not set and (if using pre-initialization) the starting
phase will be re-executed from mmc_init function.

Set the init_in_progress flag in all non-error cases. Also, move flags
setting statements around so that the flags are not set in error paths.
Also, IN_PROGRESS return status becomes unnecessary, so get rid of it.

Signed-off-by: Andrew Gabbasov <andrew_gabbasov@mentor.com>
drivers/mmc/mmc.c
include/mmc.h