diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2016-01-29 10:44:05 +0100 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2016-02-29 11:03:08 +0100 |
commit | 07d97d872359d15f0f50f3bceb8f932be99a2226 (patch) | |
tree | b4ba09998776c7cec831d2ff8c64373ebbbd8caf | |
parent | mmc: block: shut up "retrying because a re-tune was needed" message (diff) | |
download | linux-07d97d872359d15f0f50f3bceb8f932be99a2226.tar.xz linux-07d97d872359d15f0f50f3bceb8f932be99a2226.zip |
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>
-rw-r--r-- | drivers/mmc/core/core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 319efdc1ad21..41b1e761965f 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); |