mmc: core: Only print retune error when we don't check for card removal
Skip printing a retune error when we scan for a removed card because we then expect a failed command. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Acked-by: Adrian Hunter <adrian.hunter@intel.com> Link: https://lore.kernel.org/r/20210630041658.7574-1-wsa+renesas@sang-engineering.com [Ulf: Rebased patch] Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
parent
86c639ce08
commit
8335928849
|
@ -936,15 +936,17 @@ int mmc_execute_tuning(struct mmc_card *card)
|
||||||
opcode = MMC_SEND_TUNING_BLOCK;
|
opcode = MMC_SEND_TUNING_BLOCK;
|
||||||
|
|
||||||
err = host->ops->execute_tuning(host, opcode);
|
err = host->ops->execute_tuning(host, opcode);
|
||||||
|
if (!err) {
|
||||||
if (err) {
|
|
||||||
pr_err("%s: tuning execution failed: %d\n",
|
|
||||||
mmc_hostname(host), err);
|
|
||||||
} else {
|
|
||||||
mmc_retune_clear(host);
|
mmc_retune_clear(host);
|
||||||
mmc_retune_enable(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;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue