Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0b20bf4b authored by Maya Erez's avatar Maya Erez
Browse files

mmc: sdhci: Dump out descriptors information in case of req timeout



Recently we observed an interrupt timeout issue on SDIO use case,
that was caused by a SW bug in the preparation of the ADMA descriptor
table.

Dumping out the descriptor information in requests timeouts, will help
to quickly debug such issues in the future.

Change-Id: Ifa18e514df3fdb2e5808dd7e7b54deed467b1d35
Signed-off-by: default avatarMaya Erez <merez@codeaurora.org>
parent e1b54da6
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -59,6 +59,7 @@ static int sdhci_execute_tuning(struct mmc_host *mmc, u32 opcode);
static void sdhci_tuning_timer(unsigned long data);
static void sdhci_enable_preset_value(struct sdhci_host *host, bool enable);
static bool sdhci_check_state(struct sdhci_host *);
static void sdhci_show_adma_error(struct sdhci_host *host);

#ifdef CONFIG_PM_RUNTIME
static int sdhci_runtime_pm_get(struct sdhci_host *host);
@@ -2736,6 +2737,9 @@ static void sdhci_timeout_timer(unsigned long data)
		if (!host->mrq->cmd->ignore_timeout) {
			pr_err("%s: Timeout waiting for hardware interrupt.\n",
			       mmc_hostname(host->mmc));
			if (host->data)
				sdhci_show_adma_error(host);
			else
				sdhci_dumpregs(host);
		}