]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
fix(mmc): remove redundant reset_to_idle call
authorBaruch Siach <baruch@tkos.co.il>
Tue, 28 Feb 2023 10:52:00 +0000 (11:52 +0100)
committerYann Gautier <yann.gautier@st.com>
Wed, 1 Mar 2023 16:23:49 +0000 (17:23 +0100)
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 <baruch@tkos.co.il>
Change-Id: Ib8c8ed1a559e3fecb315245f91bb3dc1f547d820

drivers/mmc/mmc.c

index 2b727d4e7696bc1d3ed3d75e0b0357d7615ec2c8..57f47482013abf243a7e2933baf63798620fbcdf 100644 (file)
@@ -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,