linux-omap-2.6.28: relaxed timeout values for SD cards
authorFrans Meulenbroeks <fransmeulenbroeks@gmail.com>
Fri, 27 Mar 2009 18:32:09 +0000 (19:32 +0100)
committerFrans Meulenbroeks <fransmeulenbroeks@gmail.com>
Fri, 27 Mar 2009 18:32:09 +0000 (19:32 +0100)
this makes it possible to use cards which are around the border of the spec

recipes/linux/linux-omap-2.6.28/mmctiming.patch [new file with mode: 0644]
recipes/linux/linux-omap_2.6.28.bb

diff --git a/recipes/linux/linux-omap-2.6.28/mmctiming.patch b/recipes/linux/linux-omap-2.6.28/mmctiming.patch
new file mode 100644 (file)
index 0000000..ec540ab
--- /dev/null
@@ -0,0 +1,16 @@
+Index: git/drivers/mmc/core/core.c
+===================================================================
+--- git.orig/drivers/mmc/core/core.c
++++ git/drivers/mmc/core/core.c
+@@ -284,9 +284,9 @@ void mmc_set_data_timeout(struct mmc_dat
+                        * The limit is really 250 ms, but that is
+                        * insufficient for some crappy cards.
+                        */
+-                      limit_us = 300000;
++                      limit_us = 500000;
+               else
+-                      limit_us = 100000;
++                      limit_us = 200000;
+               /*
+                * SDHC cards always use these fixed values.
index f89ef2a..d144720 100644 (file)
@@ -13,7 +13,7 @@ DEFAULT_PREFERENCE_omap5912osk = "1"
 SRCREV = "79d042a081d3e467c735bb0d9569ed6296f85a3c"
 
 PV = "2.6.28"
-PR = "r17"
+PR = "r18"
 
 SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6.git;branch=omap-2.6.28;protocol=git \
           file://defconfig"
@@ -54,6 +54,7 @@ SRC_URI_append = " \
            file://usbttyfix.patch;patch=1 \
            file://ioremap-fix.patch;patch=1 \
            file://0124-leds-gpio-broken-with-current-git.patch;patch=1 \
+           file://mmctiming.patch;patch=1 \
 "