0412-mmc-Apply-ERASE_BROKEN-quirks-correctly.patch 1.0 KB

12345678910111213141516171819202122232425262728
  1. From 16be2ba945abbb43d62dd7d5a34ab4d6b4f40932 Mon Sep 17 00:00:00 2001
  2. From: Phil Elwell <phil@raspberrypi.org>
  3. Date: Thu, 23 Jun 2016 16:37:46 +0100
  4. Subject: [PATCH] mmc: Apply ERASE_BROKEN quirks correctly
  5. Signed-off-by: Phil Elwell <phil@raspberrypi.org>
  6. ---
  7. drivers/mmc/card/block.c | 9 +++------
  8. 1 file changed, 3 insertions(+), 6 deletions(-)
  9. --- a/drivers/mmc/card/block.c
  10. +++ b/drivers/mmc/card/block.c
  11. @@ -2558,12 +2558,9 @@ static const struct mmc_fixup blk_fixups
  12. * On some Kingston SD cards, multiple erases of less than 64
  13. * sectors can cause corruption.
  14. */
  15. - MMC_FIXUP("SD16G", 0x41, 0x3432, add_quirk_mmc,
  16. - MMC_QUIRK_ERASE_BROKEN),
  17. - MMC_FIXUP("SD32G", 0x41, 0x3432, add_quirk_mmc,
  18. - MMC_QUIRK_ERASE_BROKEN),
  19. - MMC_FIXUP("SD64G", 0x41, 0x3432, add_quirk_mmc,
  20. - MMC_QUIRK_ERASE_BROKEN),
  21. + MMC_FIXUP("SD16G", 0x41, 0x3432, add_quirk, MMC_QUIRK_ERASE_BROKEN),
  22. + MMC_FIXUP("SD32G", 0x41, 0x3432, add_quirk, MMC_QUIRK_ERASE_BROKEN),
  23. + MMC_FIXUP("SD64G", 0x41, 0x3432, add_quirk, MMC_QUIRK_ERASE_BROKEN),
  24. END_FIXUP
  25. };