From: Russell King Date: Fri, 29 Jan 2016 09:44:05 +0000 (+0000) Subject: mmc: core: report tuning command execution failure reason X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=07d97d872359d15f0f50f3bceb8f932be99a2226;p=linux.git 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 Signed-off-by: Ulf Hansson --- diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 319efdc1ad215..41b1e761965f7 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c @@ -1079,7 +1079,8 @@ int mmc_execute_tuning(struct mmc_card *card) err = host->ops->execute_tuning(host, opcode); 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 mmc_retune_enable(host);