aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/core/sd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mmc/core/sd.c')
-rw-r--r--drivers/mmc/core/sd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/mmc/core/sd.c b/drivers/mmc/core/sd.c
index 732c3171cec..fc65475a26e 100644
--- a/drivers/mmc/core/sd.c
+++ b/drivers/mmc/core/sd.c
@@ -618,6 +618,12 @@ static int mmc_sd_init_uhs_card(struct mmc_card *card)
618 618
619 /* Set current limit for the card */ 619 /* Set current limit for the card */
620 err = sd_set_current_limit(card, status); 620 err = sd_set_current_limit(card, status);
621 if (err)
622 goto out;
623
624 /* SPI mode doesn't define CMD19 */
625 if (!mmc_host_is_spi(card->host) && card->host->ops->execute_tuning)
626 err = card->host->ops->execute_tuning(card->host);
621 627
622out: 628out:
623 kfree(status); 629 kfree(status);