mmc: sdhci: remove delay during tuning command for mmc
PATCH 1/1 mmc: sdhci: remove delay during tuning command for mmc
This change removes delay during tuning command for mmc. Because mmc does not need delay between tuning commands, and it could cause performance degradation.
--- drivers/mmc/host/sdhci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/mmc/host/sdhci.c +0 -0
@@ -1992,7 +1992,8 @@ static int sdhci_execute_tuning(struct mmc_host *mmc,
u32 opcode)
ctrl = sdhci_readw(host, SDHCI_HOST_CONTROL2);
tuning_loop_counter--;
timeout--;
- mdelay(1);
+ if (mmc->card->type != MMC_TYPE_MMC)
+ mdelay(1);
} while (ctrl & SDHCI_CTRL_EXEC_TUNING);
/*--
1.8.3.2