mmc: core: report tuning command execution failure reason
Print the error code when the tuning command fails. This allows the reason for the failure to be reported, which aids debugging. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
parent
09faf61d1c
commit
07d97d8723
|
@ -1079,7 +1079,8 @@ int mmc_execute_tuning(struct mmc_card *card)
|
||||||
err = host->ops->execute_tuning(host, opcode);
|
err = host->ops->execute_tuning(host, opcode);
|
||||||
|
|
||||||
if (err)
|
if (err)
|
||||||
pr_err("%s: tuning execution failed\n", mmc_hostname(host));
|
pr_err("%s: tuning execution failed: %d\n",
|
||||||
|
mmc_hostname(host), err);
|
||||||
else
|
else
|
||||||
mmc_retune_enable(host);
|
mmc_retune_enable(host);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue