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

Commit e00d878d authored by Sarthak Garg's avatar Sarthak Garg
Browse files

mmc: sdhci: Avoid dumping registers when SD card removed



In rapid PIPO cases SD card gets removed in between some ongoing
read/write transaction which can lead to CRC/timeout errors which are
expected only.

In such cases avoid dumping the registers.

Change-Id: If490d4f1c598b3d2399971b5e782fda574b2e9b3
Signed-off-by: default avatarSarthak Garg <sartgarg@codeaurora.org>
parent ef2d7b04
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -3376,6 +3376,14 @@ static void sdhci_data_irq(struct sdhci_host *host, u32 intmask)
		} else {
			pr_msg = true;
		}

		if (host->mmc->ops->get_cd &&
				!host->mmc->ops->get_cd(host->mmc)) {
			pr_msg = false;
			pr_err("%s: Got data error(%d) during card removal\n",
				mmc_hostname(host->mmc), host->data->error);
		}

		if (pr_msg && __ratelimit(&host->dbg_dump_rs)) {
			pr_err("%s: data txfr (0x%08x) error: %d after %lld ms\n",
			       mmc_hostname(host->mmc), intmask,