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

Commit cd13656b authored by Subhash Jadavani's avatar Subhash Jadavani
Browse files

mmc: sdhci: skip printing register dumps on CRC errors



On Certain chipsets, SDR104 mode might be unstable causing CRC error on
the interface. So we need a workaround to skip printing register
dumps on CRC errors to reduce the recovery time.

Change-Id: I73986d89a080a842e01cdf88ad8d3b953755e993
Signed-off-by: default avatarSubhash Jadavani <subhashj@codeaurora.org>
parent af6a03e6
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -3096,6 +3096,9 @@ static void sdhci_data_irq(struct sdhci_host *host, u32 intmask)
			       mmc_hostname(host->mmc), intmask,
			       host->data->error, ktime_to_ms(ktime_sub(
			       ktime_get(), host->data_start_time)));

			if (!host->mmc->sdr104_wa ||
			    (host->mmc->ios.timing != MMC_TIMING_UHS_SDR104))
				sdhci_dumpregs(host);
		}
		sdhci_finish_data(host);