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

Commit 4c3e6707 authored by Veerabhadrarao Badiganti's avatar Veerabhadrarao Badiganti
Browse files

mmc: core: Reset the cmd timeout error stats after card detection



While probing the device, we check for SDIO first, then for SD-card
and finally for eMMC. So during the  probe, few command would get fail
with time-out error. Say for eMMC device, SDIO & SD-card specific
commands would fail. So just after card detection, clear the command
timeout error stats so that it captures actual timeout error count.

Change-Id: I099f4e44652f46228589b7f6ee9eb48d58609089
Signed-off-by: default avatarVeerabhadrarao Badiganti <vbadigan@codeaurora.org>
parent cd78bbb1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -4424,6 +4424,7 @@ void mmc_rescan(struct work_struct *work)
		goto out;
	}
	mmc_rescan_try_freq(host, host->f_min);
	host->err_stats[MMC_ERR_CMD_TIMEOUT] = 0;
	mmc_release_host(host);

 out: