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

Commit 04ac7bd8 authored by Veerabhadrarao Badiganti's avatar Veerabhadrarao Badiganti
Browse files

mmc: core: Ignore CRC errors with CMD13 while executing tuning



While executing tuning in case CMD19 fails, the driver sends CMD13
multiple times to ensure the card is ready to receive the next tuning
command. If this status command fails with CRC error, it will trigger
tuning. This will result in back to back tuning multiple times.

To avoid this situation, ignore CRCs error generated with CMD13 while
executing tuning.

Change-Id: Ife338768264ebebebc655fe11874e905abdf7482
Signed-off-by: default avatarVeerabhadrarao Badiganti <vbadigan@codeaurora.org>
parent 93081f59
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -2702,7 +2702,13 @@ int sdhci_execute_tuning(struct mmc_host *mmc, u32 opcode)
	}

	if (host->ops->platform_execute_tuning) {
		/*
		 * Make sure re-tuning won't get triggered for the CRC errors
		 * occurred while executing tuning
		 */
		mmc_retune_disable(mmc);
		err = host->ops->platform_execute_tuning(host, opcode);
		mmc_retune_enable(mmc);
		goto out;
	}