summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Zhu <r65037@freescale.com>2010-07-20 16:20:03 +0800
committerRichard Zhu <r65037@freescale.com>2010-07-20 16:51:57 +0800
commitd79f97b3f8e39b16c9590cd060b30b32bb7db4c8 (patch)
tree64826e5f637a8d8f3ffd89ae59c183043900815d
parent9664cb3c05e50278bfe18afdfb2d23958679014c (diff)
ENGR00125338 esdhc: A stop in audio playback when insert the card
There would be a small silent stop in the audio playback when insert the cards into the slot during the audio playback. The root cause is the mis-spell delay that would be 10 times larger than expection. Change the delay back to original expection. Signed-off-by: Richard Zhu <r65037@freescale.com>
-rw-r--r--drivers/mmc/host/mx_sdhci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/host/mx_sdhci.c b/drivers/mmc/host/mx_sdhci.c
index def8f0da39fe..036b8cd19eb9 100644
--- a/drivers/mmc/host/mx_sdhci.c
+++ b/drivers/mmc/host/mx_sdhci.c
@@ -667,7 +667,7 @@ static void sdhci_send_command(struct sdhci_host *host, struct mmc_command *cmd)
WARN_ON(host->cmd);
/* Wait max 10 ms */
- timeout = 5000;
+ timeout = 500;
mask = SDHCI_CMD_INHIBIT;
if ((cmd->data != NULL) || (cmd->flags & MMC_RSP_BUSY))
@@ -928,7 +928,7 @@ static void sdhci_set_clock(struct sdhci_host *host, unsigned int clock)
host->ioaddr + SDHCI_CLOCK_CONTROL);
/* Wait max 10 ms */
- timeout = 5000;
+ timeout = 500;
while (timeout > 0) {
timeout--;
udelay(20);