summaryrefslogtreecommitdiffstats
path: root/include/mmc.h
diff options
context:
space:
mode:
authorAndrew Gabbasov <andrew_gabbasov@mentor.com>2015-03-19 07:44:07 -0500
committerPantelis Antoniou <pantelis.antoniou@konsulko.com>2015-05-05 11:55:46 +0300
commitbd47c13583f2c4bbd29914063d2bf3a98fcdf5cb (patch)
treeca0004a3a22dd60eaa69f42437120f2baece0f69 /include/mmc.h
parent1677eef45976da1cdccc73cd4291877dbb05eea9 (diff)
downloadblackbird-obmc-uboot-bd47c13583f2c4bbd29914063d2bf3a98fcdf5cb.tar.gz
blackbird-obmc-uboot-bd47c13583f2c4bbd29914063d2bf3a98fcdf5cb.zip
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>
Diffstat (limited to 'include/mmc.h')
-rw-r--r--include/mmc.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/mmc.h b/include/mmc.h
index 644e3fa1e1..fbcbe35a79 100644
--- a/include/mmc.h
+++ b/include/mmc.h
@@ -70,8 +70,7 @@
#define UNUSABLE_ERR -17 /* Unusable Card */
#define COMM_ERR -18 /* Communications Error */
#define TIMEOUT -19
-#define IN_PROGRESS -20 /* operation is in progress */
-#define SWITCH_ERR -21 /* Card reports failure to switch mode */
+#define SWITCH_ERR -20 /* Card reports failure to switch mode */
#define MMC_CMD_GO_IDLE_STATE 0
#define MMC_CMD_SEND_OP_COND 1
OpenPOWER on IntegriCloud