]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/mmc/core/core.c
mmc: increase SD write timeout for crappy cards
[linux-2.6-omap-h63xx.git] / drivers / mmc / core / core.c
index 044d84eeed7c75f2775b27d3cb6b55630c08f688..f7284b905eb38c083882eaec993885aff5598b2c 100644 (file)
@@ -280,7 +280,11 @@ void mmc_set_data_timeout(struct mmc_data *data, const struct mmc_card *card)
                        (card->host->ios.clock / 1000);
 
                if (data->flags & MMC_DATA_WRITE)
-                       limit_us = 250000;
+                       /*
+                        * The limit is really 250 ms, but that is
+                        * insufficient for some crappy cards.
+                        */
+                       limit_us = 300000;
                else
                        limit_us = 100000;