]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
sdhci: reduce card detection delay
authorPierre Ossman <drzeus@drzeus.cx>
Mon, 18 Aug 2008 20:18:14 +0000 (22:18 +0200)
committerPierre Ossman <drzeus@drzeus.cx>
Sun, 12 Oct 2008 09:04:28 +0000 (11:04 +0200)
The card detection delay was added early when the behaviour of the
card interrupt was still very much unknown (i.e. before there was a
public specification). As it is now known that it is a debounced signal,
reduce the delay to something more sensible.

Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
drivers/mmc/host/sdhci.c

index ef461274397b52fb42da032a33db02f84e16f258..fd2dc821e40d955b76d33d5b95187cbe18a77f1e 100644 (file)
@@ -1154,7 +1154,7 @@ static void sdhci_tasklet_card(unsigned long param)
 
        spin_unlock_irqrestore(&host->lock, flags);
 
-       mmc_detect_change(host->mmc, msecs_to_jiffies(500));
+       mmc_detect_change(host->mmc, msecs_to_jiffies(200));
 }
 
 static void sdhci_tasklet_finish(unsigned long param)