diff options
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/core/core.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 84f39a59a28e..6249c83d616f 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c @@ -936,15 +936,17 @@ int mmc_execute_tuning(struct mmc_card *card) opcode = MMC_SEND_TUNING_BLOCK; err = host->ops->execute_tuning(host, opcode); - - if (err) { - pr_err("%s: tuning execution failed: %d\n", - mmc_hostname(host), err); - } else { + if (!err) { mmc_retune_clear(host); mmc_retune_enable(host); + return 0; } + /* Only print error when we don't check for card removal */ + if (!host->detect_change) + pr_err("%s: tuning execution failed: %d\n", + mmc_hostname(host), err); + return err; } |