brcm2708: update 3.10 patches with raspberrypi/rpi-3.10.y of 27 Apr. 2014
[14.07/openwrt.git] / target / linux / brcm2708 / patches-3.10 / 0013-sdhci-bcm2708-add-additional-quirks.patch
1 From fa0e27879ec0fc9034eca320e4055539a1b97797 Mon Sep 17 00:00:00 2001
2 From: Grigori Goronzy <greg@blackbox>
3 Date: Mon, 11 Jun 2012 18:53:59 +0200
4 Subject: [PATCH 013/196] sdhci-bcm2708: add additional quirks
5
6 Some additional quirks are needed for correct operation.
7 There's no SDHCI capabilities register documented, and it always reads
8 zero, so add SDHCI_QUIRK_MISSING_CAPS. Apparently
9 SDHCI_QUIRK_NO_HISPD_BIT is needed for many cards to work correctly in
10 high-speed mode, so add it as well.
11 ---
12  drivers/mmc/host/sdhci-bcm2708.c | 4 +++-
13  1 file changed, 3 insertions(+), 1 deletion(-)
14
15 diff --git a/drivers/mmc/host/sdhci-bcm2708.c b/drivers/mmc/host/sdhci-bcm2708.c
16 index 0ed4d85..3001836 100644
17 --- a/drivers/mmc/host/sdhci-bcm2708.c
18 +++ b/drivers/mmc/host/sdhci-bcm2708.c
19 @@ -1189,7 +1189,9 @@ static int sdhci_bcm2708_probe(struct platform_device *pdev)
20         host->quirks = SDHCI_QUIRK_BROKEN_CARD_DETECTION |
21                        SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK |
22                        SDHCI_QUIRK_BROKEN_TIMEOUT_VAL |
23 -                      SDHCI_QUIRK_NONSTANDARD_CLOCK;
24 +               SDHCI_QUIRK_MISSING_CAPS |
25 +               SDHCI_QUIRK_NO_HISPD_BIT;
26 +
27  #ifdef CONFIG_MMC_SDHCI_BCM2708_DMA
28         host->flags = SDHCI_USE_PLATDMA;
29  #endif
30 -- 
31 1.9.1
32