Skip to contentSkip to conversation

mmc: sdhci: remove delay during tuning command for mmc

PATCH New Seunguk Shin 1 participant 1 message Apr 4, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index 9a79fc4..bd266fa 100644
@@ -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