brcm2708: update against latest rpi-3.10.y branch
[openwrt/svn-archive/archive.git] / target / linux / brcm2708 / patches-3.10 / 0017-sdhci-bcm2708-raise-DMA-sync-timeout.patch
1 From a6544a62be8711e727a0d774b55c5edeec12e531 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/174] 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 --- a/drivers/mmc/host/sdhci-bcm2708.c
18 +++ b/drivers/mmc/host/sdhci-bcm2708.c
19 @@ -830,7 +830,7 @@ static void sdhci_bcm2708_dma_complete_i
20 We get CRC and DEND errors unless we wait for
21 the SD controller to finish reading/writing to the card. */
22 u32 state_mask;
23 - int timeout=1000;
24 + int timeout=5000;
25
26 DBG("PDMA over - sync card\n");
27 if (data->flags & MMC_DATA_READ)