diff options
author | Troy Kisky <troy.kisky@boundarydevices.com> | 2014-04-28 17:22:37 -0700 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2020-02-09 22:42:33 +0100 |
commit | 11853e804ff4e35139a0005bec772db2055e33d7 (patch) | |
tree | ca08616646a6e663570e9860f9aab591be9cde3d | |
parent | 95ad064d93fac1bb1418f8cc91d8188a929e76e1 (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)
-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 0093b08e51a5..190222f2f657 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -2568,8 +2568,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) { |