ixp4xx: remove linux 3.10 support
[openwrt/openwrt.git] / target / linux / brcm2708 / patches-3.10 / 0017-sdhci-bcm2708-raise-DMA-sync-timeout.patch
1 From 93ad4d743dfa8a5f6bb1d7abf739c7149012099b Mon Sep 17 00:00:00 2001
2 From: popcornmix <popcornmix@gmail.com>
3 Date: Sat, 16 Jun 2012 22:35:38 +0100
4 Subject: [PATCH 017/196] sdhci-bcm2708: raise DMA sync timeout
5
6 Commit d64b84c by accident reduced the maximum overall DMA sync
7 timeout. The maximum overall timeout was reduced from 100ms to 30ms,
8 which isn't enough for many cards. Increase it to 150ms, just to be
9 extra safe. According to commit 872a8ff in the MMC subsystem, some
10 cards require crazy long timeouts (3s), but as we're busy-waiting,
11 and shouldn't delay for such a long time, let's hope 150ms will be
12 enough for most cards.
13 ---
14 drivers/mmc/host/sdhci-bcm2708.c | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17 diff --git a/drivers/mmc/host/sdhci-bcm2708.c b/drivers/mmc/host/sdhci-bcm2708.c
18 index 0ee983c..b0cdd7d 100644
19 --- a/drivers/mmc/host/sdhci-bcm2708.c
20 +++ b/drivers/mmc/host/sdhci-bcm2708.c
21 @@ -830,7 +830,7 @@ static void sdhci_bcm2708_dma_complete_irq(struct sdhci_host *host,
22 We get CRC and DEND errors unless we wait for
23 the SD controller to finish reading/writing to the card. */
24 u32 state_mask;
25 - int timeout=1000;
26 + int timeout=5000;
27
28 DBG("PDMA over - sync card\n");
29 if (data->flags & MMC_DATA_READ)
30 --
31 1.9.1
32