brcm2708: update linux 4.4 patches to latest version
[openwrt.git] / target / linux / brcm2708 / patches-4.4 / 0121-MMC-Do-not-use-mmc_debug-if-CONFIG_MMC_BCM2835-is-no.patch
1 From 280bea89916813978b81811c2769411d438eb52f Mon Sep 17 00:00:00 2001
2 From: janluca <janluca@zedat.fu-berlin.de>
3 Date: Sun, 27 Dec 2015 14:34:04 +0100
4 Subject: [PATCH 121/170] MMC: Do not use mmc_debug if CONFIG_MMC_BCM2835 is
5  not set
6
7 If CONFIG_MMC_BCM2835 was not set the compiling of the kernel failed
8 since mmc_debug was not defined but used in drivers/mmc/core/quirks.c.
9
10 This patch add a ifdef-check for CONFIG_MMC_BCM2835 to the change of
11 commit 64d395457f793250d2e582eeb38cc3403b1db98c
12 ---
13  drivers/mmc/core/quirks.c | 4 ++++
14  1 file changed, 4 insertions(+)
15
16 --- a/drivers/mmc/core/quirks.c
17 +++ b/drivers/mmc/core/quirks.c
18 @@ -53,7 +53,9 @@ static const struct mmc_fixup mmc_fixup_
19  
20  void mmc_fixup_device(struct mmc_card *card, const struct mmc_fixup *table)
21  {
22 +#ifdef CONFIG_MMC_BCM2835
23         extern unsigned mmc_debug;
24 +#endif
25         const struct mmc_fixup *f;
26         u64 rev = cid_rev_card(card);
27  
28 @@ -81,7 +83,9 @@ void mmc_fixup_device(struct mmc_card *c
29         /* SDHCI on BCM2708 - bug causes a certain sequence of CMD23 operations to fail.
30          * Disable this flag for all cards (fall-back to CMD25/CMD18 multi-block transfers).
31          */
32 +#ifdef CONFIG_MMC_BCM2835
33         if (mmc_debug & (1<<13))
34         card->quirks |= MMC_QUIRK_BLK_NO_CMD23;
35 +#endif
36  }
37  EXPORT_SYMBOL(mmc_fixup_device);