diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2016-01-29 09:44:05 +0000 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2016-02-29 11:03:08 +0100 |
commit | 07d97d872359d15f0f50f3bceb8f932be99a2226 (patch) | |
tree | b4ba09998776c7cec831d2ff8c64373ebbbd8caf /drivers/mmc/core/core.c | |
parent | 09faf61d1c3f70866a2f0864c00df6daaff52012 (diff) |
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>
Diffstat (limited to 'drivers/mmc/core/core.c')
-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); |