diff options
author | Troy Kisky <troy.kisky@boundarydevices.com> | 2014-04-28 17:22:37 -0700 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2017-12-21 14:26:06 +0100 |
commit | c3c613e958b4cc133710407e15a8603304810911 (patch) | |
tree | ab40147d9547136f4fecfccec23b0bd0a726ac89 /drivers/mmc | |
parent | b9d0e040eaa426a5713d4df1779fbac2bb1e48a0 (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.c | 5 |
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) { |