summaryrefslogtreecommitdiffstats
path: root/recipes-kernel
diff options
context:
space:
mode:
authorJoel A Fernandes <agnel.joel@gmail.com>2011-07-26 07:21:10 +0000
committerKoen Kooi <koen@dominion.thruhere.net>2011-07-26 07:27:40 +0200
commit23553ed7e2dae29256238c996196e760ecd1fb53 (patch)
treec7ea7b8f4d5bfc5b548cd2d4ef0950e102de222e /recipes-kernel
parent410d3fe6acdaa928c980b302955053c8f6de98fd (diff)
downloadmeta-ti-23553ed7e2dae29256238c996196e760ecd1fb53.tar.gz
linux-omap: Fix MMC timeout Errors
This fixes MMC errors due to timeouts on certain SD Cards following suggestions to set dto to 14 by Jason Kridner and Steven Kipisz Details of the issue: http://talk.maemo.org/showthread.php?p=1000707#post1000707 This fix proposed by Sukumar Ghoral of TI. Signed-off-by: Joel A Fernandes <agnel.joel@gmail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'recipes-kernel')
-rw-r--r--recipes-kernel/linux/linux-omap-2.6.39/beagle/0007-omap-mmc-Adjust-dto-to-eliminate-timeout-errors.patch33
-rw-r--r--recipes-kernel/linux/linux-omap_2.6.39.bb3
2 files changed, 35 insertions, 1 deletions
diff --git a/recipes-kernel/linux/linux-omap-2.6.39/beagle/0007-omap-mmc-Adjust-dto-to-eliminate-timeout-errors.patch b/recipes-kernel/linux/linux-omap-2.6.39/beagle/0007-omap-mmc-Adjust-dto-to-eliminate-timeout-errors.patch
new file mode 100644
index 00000000..8cd314c6
--- /dev/null
+++ b/recipes-kernel/linux/linux-omap-2.6.39/beagle/0007-omap-mmc-Adjust-dto-to-eliminate-timeout-errors.patch
@@ -0,0 +1,33 @@
1From bd0b2f97c48aa6aac0c6a494f1c6ba5af5de486b Mon Sep 17 00:00:00 2001
2From: Steve Sakoman <steve@sakoman.com>
3Date: Mon, 18 Jul 2011 23:13:41 -0500
4Subject: [PATCH] omap_hsmmc: Set dto to max value of 14 to avoid SD Card timeouts
5
6This fixes MMC errors due to timeouts on certain SD Cards following suggestions
7to set dto to 14 by Jason Kridner and Steven Kipisz
8
9Details of the issue:
10http://talk.maemo.org/showthread.php?p=1000707#post1000707
11
12This fix was originally proposed by Sukumar Ghoral of TI.
13---
14 drivers/mmc/host/omap_hsmmc.c | 3 +++
15 1 files changed, 3 insertions(+), 0 deletions(-)
16
17diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c
18index 9646a75..7443647 100644
19--- a/drivers/mmc/host/omap_hsmmc.c
20+++ b/drivers/mmc/host/omap_hsmmc.c
21@@ -1049,6 +1049,9 @@ static void set_data_timeout(struct omap_hsmmc_host *host,
22 dto = 14;
23 }
24
25+ /* Set dto to max value of 14 to avoid SD Card timeouts */
26+ dto = 14;
27+
28 reg &= ~DTO_MASK;
29 reg |= dto << DTO_SHIFT;
30 OMAP_HSMMC_WRITE(host->base, SYSCTL, reg);
31--
321.7.0.4
33
diff --git a/recipes-kernel/linux/linux-omap_2.6.39.bb b/recipes-kernel/linux/linux-omap_2.6.39.bb
index c92846d7..a22e81f4 100644
--- a/recipes-kernel/linux/linux-omap_2.6.39.bb
+++ b/recipes-kernel/linux/linux-omap_2.6.39.bb
@@ -7,7 +7,7 @@ COMPATIBLE_MACHINE = "(beagleboard)"
7 7
8# The main PR is now using MACHINE_KERNEL_PR, for omap3 see conf/machine/include/omap3.inc 8# The main PR is now using MACHINE_KERNEL_PR, for omap3 see conf/machine/include/omap3.inc
9SRCREV_pn-${PN} = "v2.6.39" 9SRCREV_pn-${PN} = "v2.6.39"
10MACHINE_KERNEL_PR_append = "n" 10MACHINE_KERNEL_PR_append = "o"
11 11
12FILESPATHPKG_prepend = "linux-omap-2.6.39:" 12FILESPATHPKG_prepend = "linux-omap-2.6.39:"
13 13
@@ -54,6 +54,7 @@ SRC_URI_append = " \
54 file://beagle/0004-OMAP3-beagle-add-regulators-for-camera-interface.patch \ 54 file://beagle/0004-OMAP3-beagle-add-regulators-for-camera-interface.patch \
55 file://beagle/0005-OMAP3-beagle-HACK-add-in-1GHz-OPP.patch \ 55 file://beagle/0005-OMAP3-beagle-HACK-add-in-1GHz-OPP.patch \
56 file://beagle/0006-OMAP3-BEAGLE-fix-RTC.patch \ 56 file://beagle/0006-OMAP3-BEAGLE-fix-RTC.patch \
57 file://beagle/0007-omap-mmc-Adjust-dto-to-eliminate-timeout-errors.patch \
57 \ 58 \
58 file://camera/0001-Add-driver-for-Aptina-Micron-mt9p031-sensor.patch \ 59 file://camera/0001-Add-driver-for-Aptina-Micron-mt9p031-sensor.patch \
59 file://camera/0002-v4l-Add-mt9v032-sensor-driver.patch \ 60 file://camera/0002-v4l-Add-mt9v032-sensor-driver.patch \