0059-mmc-Disable-CMD23-transfers-on-all-cards.patch 959 B

1234567891011121314151617181920212223242526
  1. From 06c752756a452a0c59447836edce57ef7393be5c Mon Sep 17 00:00:00 2001
  2. From: P33M <P33M@github.com>
  3. Date: Tue, 13 Jan 2015 17:12:18 +0000
  4. Subject: [PATCH 059/114] mmc: Disable CMD23 transfers on all cards
  5. Pending wire-level investigation of these types of transfers
  6. and associated errors on bcm2835-mmc, disable for now. Fallback of
  7. CMD18/CMD25 transfers will be used automatically by the MMC layer.
  8. Reported/Tested-by: Gellert Weisz <gellert@raspberrypi.org>
  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. @@ -95,5 +95,9 @@ void mmc_fixup_device(struct mmc_card *c
  15. f->vendor_fixup(card, f->data);
  16. }
  17. }
  18. + /* SDHCI on BCM2708 - bug causes a certain sequence of CMD23 operations to fail.
  19. + * Disable this flag for all cards (fall-back to CMD25/CMD18 multi-block transfers).
  20. + */
  21. + card->quirks |= MMC_QUIRK_BLK_NO_CMD23;
  22. }
  23. EXPORT_SYMBOL(mmc_fixup_device);