brcm2708: update against latest rpi-3.10.y branch
[openwrt.git] / target / linux / brcm2708 / patches-3.10 / 0013-sdhci-bcm2708-add-additional-quirks.patch
1 From b567bbb9b16e9c860c8d7a4f2c6cf44c66533dfa 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/174] 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 --- a/drivers/mmc/host/sdhci-bcm2708.c
16 +++ b/drivers/mmc/host/sdhci-bcm2708.c
17 @@ -1189,7 +1189,9 @@ static int sdhci_bcm2708_probe(struct pl
18         host->quirks = SDHCI_QUIRK_BROKEN_CARD_DETECTION |
19                        SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK |
20                        SDHCI_QUIRK_BROKEN_TIMEOUT_VAL |
21 -                      SDHCI_QUIRK_NONSTANDARD_CLOCK;
22 +               SDHCI_QUIRK_MISSING_CAPS |
23 +               SDHCI_QUIRK_NO_HISPD_BIT;
24 +
25  #ifdef CONFIG_MMC_SDHCI_BCM2708_DMA
26         host->flags = SDHCI_USE_PLATDMA;
27  #endif