0120-MMC-Do-not-use-mmc_debug-if-CONFIG_MMC_BCM2835-is-no.patch 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. From 426f98468a5e4d083a1753f60ddfa777d98cd86c 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] MMC: Do not use mmc_debug if CONFIG_MMC_BCM2835 is not set
  5. If CONFIG_MMC_BCM2835 was not set the compiling of the kernel failed
  6. since mmc_debug was not defined but used in drivers/mmc/core/quirks.c.
  7. This patch add a ifdef-check for CONFIG_MMC_BCM2835 to the change of
  8. commit 64d395457f793250d2e582eeb38cc3403b1db98c
  9. ---
  10. drivers/mmc/core/quirks.c | 4 ++++
  11. 1 file changed, 4 insertions(+)
  12. --- a/drivers/mmc/core/quirks.c
  13. +++ b/drivers/mmc/core/quirks.c
  14. @@ -53,7 +53,9 @@ static const struct mmc_fixup mmc_fixup_
  15. void mmc_fixup_device(struct mmc_card *card, const struct mmc_fixup *table)
  16. {
  17. +#ifdef CONFIG_MMC_BCM2835
  18. extern unsigned mmc_debug;
  19. +#endif
  20. const struct mmc_fixup *f;
  21. u64 rev = cid_rev_card(card);
  22. @@ -81,7 +83,9 @@ void mmc_fixup_device(struct mmc_card *c
  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. +#ifdef CONFIG_MMC_BCM2835
  27. if (mmc_debug & (1<<13))
  28. card->quirks |= MMC_QUIRK_BLK_NO_CMD23;
  29. +#endif
  30. }
  31. EXPORT_SYMBOL(mmc_fixup_device);