diff options
Diffstat (limited to 'recipes/linux/linux-omap-2.6.37/0001-omap-mmc-Adjust-dto-to-eliminate-timeout-errors.patch')
-rw-r--r-- | recipes/linux/linux-omap-2.6.37/0001-omap-mmc-Adjust-dto-to-eliminate-timeout-errors.patch | 30 |
1 files changed, 30 insertions, 0 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 0000000000..6e888d27cb --- /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@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 + |