42e342b840e85dbc55178076b8a5984abef31bf3
[glsdk/meta-ti-glsdk.git] / recipes-kernel / linux / linux-ti33x-psp-3.2 / beaglebone / 0016-omap_hsmmc-Set-dto-to-max-value-of-14-to-avoid-SD-Ca.patch
1 From 96debb4a5199afb9ad47e8c94292540e99d4050f Mon Sep 17 00:00:00 2001
2 From: Steve Sakoman <steve@sakoman.com>
3 Date: Mon, 18 Jul 2011 23:13:41 -0500
4 Subject: [PATCH 16/26] omap_hsmmc: Set dto to max value of 14 to avoid SD
5 Card timeouts
7 This fixes MMC errors due to timeouts on certain SD Cards following suggestions
8 to set dto to 14 by Jason Kridner and Steven Kipisz
10 Details of the issue:
11 http://talk.maemo.org/showthread.php?p=1000707#post1000707
13 This fix was originally proposed by Sukumar Ghoral of TI.
14 ---
15 drivers/mmc/host/omap_hsmmc.c | 3 +++
16 1 file changed, 3 insertions(+)
18 diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c
19 index 1f938d9..ace26f7 100644
20 --- a/drivers/mmc/host/omap_hsmmc.c
21 +++ b/drivers/mmc/host/omap_hsmmc.c
22 @@ -1542,6 +1542,9 @@ static void set_data_timeout(struct omap_hsmmc_host *host)
23 /* Use the maximum timeout value allowed in the standard of 14 or 0xE */
24 dto = 14;
26 + /* Set dto to max value of 14 to avoid SD Card timeouts */
27 + dto = 14;
28 +
29 reg &= ~DTO_MASK;
30 reg |= dto << DTO_SHIFT;
31 OMAP_HSMMC_WRITE(host->base, SYSCTL, reg);
32 --
33 1.7.9.5