[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 0cc4e8a341f58683ee26bceb27e43cbb7bb3dc30 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/22] 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 703013c..554237f 100644
20 --- a/drivers/mmc/host/omap_hsmmc.c
21 +++ b/drivers/mmc/host/omap_hsmmc.c
22 @@ -1562,6 +1562,9 @@ static void set_data_timeout(struct omap_hsmmc_host *host,
23 dto = 14;
24 }
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.4