summaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorTroy Kisky <troy.kisky@boundarydevices.com>2014-04-28 17:22:37 -0700
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2017-12-21 14:26:06 +0100
commitc3c613e958b4cc133710407e15a8603304810911 (patch)
treeab40147d9547136f4fecfccec23b0bd0a726ac89 /drivers/mmc
parentb9d0e040eaa426a5713d4df1779fbac2bb1e48a0 (diff)
sdhci: print opcode/retries on timeout error
Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit 68e57f58377e2251c587dfd375b981d14d8e6ba8) (cherry picked from commit 3bb87f210ab830722df3916e5301d2613941e09f)
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/sdhci.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index d09cbf5695f4..d92c37abada8 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -2420,8 +2420,9 @@ static void sdhci_timeout_data_timer(unsigned long data)
if (host->data || host->data_cmd ||
(host->cmd && sdhci_data_line_cmd(host->cmd))) {
- pr_err("%s: Timeout waiting for hardware interrupt.\n",
- mmc_hostname(host->mmc));
+ pr_err("%s: Timeout waiting for hardware interrupt. retries left=%d opcode=%x\n",
+ mmc_hostname(host->mmc), host->cmd ? host->cmd->retries : 0,
+ host->cmd ? host->cmd->opcode : 0);
sdhci_dumpregs(host);
if (host->data) {