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

12345678910111213141516171819202122232425262728293031323334353637
  1. From f507706440ee0505e7533660f19781ea279355b0 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 120/381] MMC: Do not use mmc_debug if CONFIG_MMC_BCM2835 is
  5. not set
  6. If CONFIG_MMC_BCM2835 was not set the compiling of the kernel failed
  7. since mmc_debug was not defined but used in drivers/mmc/core/quirks.c.
  8. This patch add a ifdef-check for CONFIG_MMC_BCM2835 to the change of
  9. commit 64d395457f793250d2e582eeb38cc3403b1db98c
  10. ---
  11. drivers/mmc/core/quirks.c | 4 ++++
  12. 1 file changed, 4 insertions(+)
  13. --- a/drivers/mmc/core/quirks.c
  14. +++ b/drivers/mmc/core/quirks.c
  15. @@ -53,7 +53,9 @@ static const struct mmc_fixup mmc_fixup_
  16. void mmc_fixup_device(struct mmc_card *card, const struct mmc_fixup *table)
  17. {
  18. +#ifdef CONFIG_MMC_BCM2835
  19. extern unsigned mmc_debug;
  20. +#endif
  21. const struct mmc_fixup *f;
  22. u64 rev = cid_rev_card(card);
  23. @@ -81,7 +83,9 @@ void mmc_fixup_device(struct mmc_card *c
  24. /* SDHCI on BCM2708 - bug causes a certain sequence of CMD23 operations to fail.
  25. * Disable this flag for all cards (fall-back to CMD25/CMD18 multi-block transfers).
  26. */
  27. +#ifdef CONFIG_MMC_BCM2835
  28. if (mmc_debug & (1<<13))
  29. card->quirks |= MMC_QUIRK_BLK_NO_CMD23;
  30. +#endif
  31. }
  32. EXPORT_SYMBOL(mmc_fixup_device);