[oe-commits] Koen Kooi : linux-omap 2.6.37: add patch for mmc timeout issues

git version control git at git.openembedded.org
Fri Mar 11 13:08:12 UTC 2011


Module: openembedded.git
Branch: org.openembedded.dev
Commit: d95d1126c0b2a7e9e087e94d1f751165745ce7a4
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=d95d1126c0b2a7e9e087e94d1f751165745ce7a4

Author: Koen Kooi <koen at openembedded.org>
Date:   Fri Mar 11 09:15:38 2011 +0100

linux-omap 2.6.37: add patch for mmc timeout issues

Signed-off-by: Koen Kooi <koen at openembedded.org>

---

 ...mc-Adjust-dto-to-eliminate-timeout-errors.patch |   30 ++++++++++++++++++++
 recipes/linux/linux-omap_2.6.37.bb                 |    5 ++-
 2 files changed, 33 insertions(+), 2 deletions(-)

diff --git a/recipes/linux/linux-omap-2.6.37/0001-omap-mmc-Adjust-dto-to-eliminate-timeout-errors.patch b/recipes/linux/linux-omap-2.6.37/0001-omap-mmc-Adjust-dto-to-eliminate-timeout-errors.patch
new file mode 100644
index 0000000..6e888d2
--- /dev/null
+++ b/recipes/linux/linux-omap-2.6.37/0001-omap-mmc-Adjust-dto-to-eliminate-timeout-errors.patch
@@ -0,0 +1,30 @@
+From d1adf60fcb9b8b704e909aed90d64c8755340ceb Mon Sep 17 00:00:00 2001
+From: Steve Sakoman <steve at sakoman.com>
+Date: Wed, 12 Jan 2011 13:54:55 -0800
+Subject: [PATCH] omap: mmc: Adjust dto to eliminate timeout errors
+
+omap: mmc: Adjust dto to eliminate timeout errors
+
+A number of SD card types were experiencing timeout errors.  This
+could also lead to data corruption in some cases.
+
+This fix proposed by Sukumar Ghoral of TI.
+---
+ drivers/mmc/host/omap_hsmmc.c |    1 +
+ 1 files changed, 1 insertions(+), 0 deletions(-)
+
+diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c
+index 5d46021..4ba2f6c 100644
+--- a/drivers/mmc/host/omap_hsmmc.c
++++ b/drivers/mmc/host/omap_hsmmc.c
+@@ -1405,6 +1405,7 @@ static void set_data_timeout(struct omap_hsmmc_host *host,
+ 	cycle_ns = 1000000000 / (clk_get_rate(host->fclk) / clkd);
+ 	timeout = timeout_ns / cycle_ns;
+ 	timeout += timeout_clks;
++	timeout *= 2;
+ 	if (timeout) {
+ 		while ((timeout & 0x80000000) == 0) {
+ 			dto += 1;
+-- 
+1.6.6.1
+
diff --git a/recipes/linux/linux-omap_2.6.37.bb b/recipes/linux/linux-omap_2.6.37.bb
index 2953097..8cdc353 100644
--- a/recipes/linux/linux-omap_2.6.37.bb
+++ b/recipes/linux/linux-omap_2.6.37.bb
@@ -7,7 +7,7 @@ COMPATIBLE_MACHINE = "(beagleboard|overo|omap3evm|omap3-touchbook|usrp-e1xx)"
 
 # The main PR is now using MACHINE_KERNEL_PR, for omap3 see conf/machine/include/omap3.inc
 PV = "2.6.37"
-MACHINE_KERNEL_PR_append = "c+gitr${SRCREV}"
+MACHINE_KERNEL_PR_append = "d+gitr${SRCREV}"
 SRCREV = "fa3b4e23ec20cfc944db7cc2b30b0d82c20e4472"
 
 FILESPATHPKG_prepend = "linux-omap-2.6.37:"
@@ -197,7 +197,8 @@ SRC_URI_append = " \
                   file://0001-xM-audio-fix-from-Ashok.patch \
                   file://0001-omap3-allow-1GHz-mpurates.patch \
                   file://0001-BeagleBoard-Adjust-USER-button-pin-for-xM.patch \
-                  "
+                  file://0001-omap-mmc-Adjust-dto-to-eliminate-timeout-errors.patch \
+                 "
 
 SRC_URI_append_usrp-e1xx = "\
                   file://usrp/0001-Add-defines-to-set-config-options-in-GPMC-per-CS-con.patch \





More information about the Openembedded-commits mailing list