From: Baruch Siach Date: Tue, 28 Feb 2023 10:52:00 +0000 (+0100) Subject: fix(mmc): remove redundant reset_to_idle call X-Git-Tag: baikal/aarch64/sdk5.10~1^2~142^2 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=bc0a73866f3e4f7138892b228eb592be118b40d2;p=arm-tf.git fix(mmc): remove redundant reset_to_idle call mmc_enumerate() is the only caller of mmc_send_op_cond(). mmc_enumerate() calls mmc_reset_to_idle() just before calling mmc_send_op_cond(). No need to do that again in mmc_send_op_cond(). Signed-off-by: Baruch Siach Change-Id: Ib8c8ed1a559e3fecb315245f91bb3dc1f547d820 --- diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 2b727d4e7..57f474820 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -452,11 +452,6 @@ static int mmc_send_op_cond(void) int ret, n; unsigned int resp_data[4]; - ret = mmc_reset_to_idle(); - if (ret != 0) { - return ret; - } - for (n = 0; n < SEND_OP_COND_MAX_RETRIES; n++) { ret = mmc_send_cmd(MMC_CMD(1), OCR_SECTOR_MODE | OCR_VDD_MIN_2V7 | OCR_VDD_MIN_1V7,