diff options
author | Troy Kisky <troy.kisky@boundarydevices.com> | 2014-04-28 17:22:37 -0700 |
---|---|---|
committer | Philippe Schenker <philippe.schenker@toradex.com> | 2020-08-13 16:04:34 +0200 |
commit | 96c0b9b3ba20084b6dc6b4a16c616cf7fe82ddc0 (patch) | |
tree | 59f3cfa1a7aa849db3fb8b1674cca90a8fd503d1 | |
parent | cb9655ca937c48d39999b8320429556c7c7bc357 (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)
(cherry picked from commit 4abd962c6804124be590ba6bb2842390026f1d0d)
-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 636fc0daec05..767df57abd97 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -2793,8 +2793,9 @@ static void sdhci_timeout_data_timer(struct timer_list *t) 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) { |