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

Commit 451a9cde authored by Liangliang Lu's avatar Liangliang Lu
Browse files

mmc: sdhci: add err_state to sdhci_dumpregs func



This change sets err_state in sdhci_dumpregs func indicating
driver errors captured, which can be read out from debugfs.

CRs-Fixed: 1056483
Change-Id: If6323f4e2cf9c835139ea92753ae8407709b8a70
Signed-off-by: default avatarLiangliang Lu <luliang@codeaurora.org>
parent 67ca95e6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -173,6 +173,8 @@ static void sdhci_dumpregs(struct sdhci_host *host)
		       readl(host->ioaddr + SDHCI_ADMA_ADDRESS_LOW));
	}

	host->mmc->err_occurred = true;

	if (host->ops->dump_vendor_regs)
		host->ops->dump_vendor_regs(host);
	sdhci_dump_state(host);