brcm2708: update to v3.18
[openwrt.git] / target / linux / brcm2708 / patches-3.18 / 0059-mmc-Disable-CMD23-transfers-on-all-cards.patch
1 From 06c752756a452a0c59447836edce57ef7393be5c Mon Sep 17 00:00:00 2001
2 From: P33M <P33M@github.com>
3 Date: Tue, 13 Jan 2015 17:12:18 +0000
4 Subject: [PATCH 059/114] mmc: Disable CMD23 transfers on all cards
5
6 Pending wire-level investigation of these types of transfers
7 and associated errors on bcm2835-mmc, disable for now. Fallback of
8 CMD18/CMD25 transfers will be used automatically by the MMC layer.
9
10 Reported/Tested-by: Gellert Weisz <gellert@raspberrypi.org>
11 ---
12  drivers/mmc/core/quirks.c | 4 ++++
13  1 file changed, 4 insertions(+)
14
15 diff --git a/drivers/mmc/core/quirks.c b/drivers/mmc/core/quirks.c
16 index dd1d1e0..f472082 100644
17 --- a/drivers/mmc/core/quirks.c
18 +++ b/drivers/mmc/core/quirks.c
19 @@ -95,5 +95,9 @@ void mmc_fixup_device(struct mmc_card *card, const struct mmc_fixup *table)
20                         f->vendor_fixup(card, f->data);
21                 }
22         }
23 +       /* SDHCI on BCM2708 - bug causes a certain sequence of CMD23 operations to fail.
24 +        * Disable this flag for all cards (fall-back to CMD25/CMD18 multi-block transfers).
25 +        */
26 +       card->quirks |= MMC_QUIRK_BLK_NO_CMD23;
27  }
28  EXPORT_SYMBOL(mmc_fixup_device);
29 -- 
30 1.8.3.2
31