1 From c60f16ec7e69f59b3bef9f9b7041a973d144dc87 Mon Sep 17 00:00:00 2001
2 From: Steve Sakoman <steve@sakoman.com>
3 Date: Wed, 12 Jan 2011 05:54:55 -0800
4 Subject: [PATCH 23/28] omap: mmc: Adjust dto to eliminate timeout errors
6 A number of SD card types were experiencing timeout errors. This
7 could also lead to data corruption in some cases.
9 This fix proposed by Sukumar Ghoral of TI.
11 drivers/mmc/host/omap_hsmmc.c | 1 +
12 1 files changed, 1 insertions(+), 0 deletions(-)
14 diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c
15 index d57686c..7fb03e8 100644
16 --- a/drivers/mmc/host/omap_hsmmc.c
17 +++ b/drivers/mmc/host/omap_hsmmc.c
18 @@ -1400,6 +1400,7 @@ static void set_data_timeout(struct omap_hsmmc_host *host,
19 cycle_ns = 1000000000 / (clk_get_rate(host->fclk) / clkd);
20 timeout = timeout_ns / cycle_ns;
21 timeout += timeout_clks;
24 while ((timeout & 0x80000000) == 0) {