From 6d417e1ed0883033458ab7d904f10a532d76deba Mon Sep 17 00:00:00 2001 From: Antony Arun T Date: Tue, 3 Apr 2018 12:14:17 +0530 Subject: [PATCH] emmc: fix for mmc_init failure Change-Id: I0c7202725415253492db29b693d6c9937856f3e5 Signed-off-by: Antony Arun T --- drivers/mmc/mmc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 6d401bc17f..2170094c03 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -387,8 +387,7 @@ static int mmc_send_op_cond_iter(struct mmc *mmc, int use_arg) mmc->ocr = cmd.response[0]; /*1ms delay is added to give cards time to respond*/ - if(!use_arg) - udelay(1000); + udelay(1000); return 0; } @@ -400,7 +399,7 @@ static int mmc_send_op_cond(struct mmc *mmc) /* Some cards seem to need this */ mmc_go_idle(mmc); - /* Asking to the card its capabilities */ + /* Asking to the card its capabilities */ for (i = 0; i < 2; i++) { err = mmc_send_op_cond_iter(mmc, i != 0); if (err)