diff options
author | Troy Kisky <troy.kisky@boundarydevices.com> | 2014-04-28 17:22:37 -0700 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2018-12-24 01:27:25 +0100 |
commit | 4034a058e47c5ddc15fb4c35def7dd39b7e3d842 (patch) | |
tree | a7a1d776b7456342b0698101fa1ba6b9ca41cab4 /drivers/mmc | |
parent | 6ccb4a609ecfa06fd11c3bbfe5dce96af571fb3c (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 efe4c8ae9d61..28751807fa70 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -2463,8 +2463,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) { |