2016-09-10 12:54:26 +00:00
|
|
|
From 3aa91ff84515641bdc7a3b2ddf4638af0942bc56 Mon Sep 17 00:00:00 2001
|
2016-07-07 07:22:07 +00:00
|
|
|
From: Phil Elwell <phil@raspberrypi.org>
|
|
|
|
Date: Thu, 23 Jun 2016 16:37:46 +0100
|
2016-09-10 12:54:26 +00:00
|
|
|
Subject: [PATCH] mmc: Apply ERASE_BROKEN quirks correctly
|
2016-07-07 07:22:07 +00:00
|
|
|
|
|
|
|
Signed-off-by: Phil Elwell <phil@raspberrypi.org>
|
|
|
|
---
|
|
|
|
drivers/mmc/card/block.c | 9 +++------
|
|
|
|
1 file changed, 3 insertions(+), 6 deletions(-)
|
|
|
|
|
|
|
|
--- a/drivers/mmc/card/block.c
|
|
|
|
+++ b/drivers/mmc/card/block.c
|
2016-10-29 07:56:58 +00:00
|
|
|
@@ -2564,12 +2564,9 @@ static const struct mmc_fixup blk_fixups
|
2016-07-07 07:22:07 +00:00
|
|
|
* On some Kingston SD cards, multiple erases of less than 64
|
|
|
|
* sectors can cause corruption.
|
|
|
|
*/
|
|
|
|
- MMC_FIXUP("SD16G", 0x41, 0x3432, add_quirk_mmc,
|
|
|
|
- MMC_QUIRK_ERASE_BROKEN),
|
|
|
|
- MMC_FIXUP("SD32G", 0x41, 0x3432, add_quirk_mmc,
|
|
|
|
- MMC_QUIRK_ERASE_BROKEN),
|
|
|
|
- MMC_FIXUP("SD64G", 0x41, 0x3432, add_quirk_mmc,
|
|
|
|
- MMC_QUIRK_ERASE_BROKEN),
|
|
|
|
+ MMC_FIXUP("SD16G", 0x41, 0x3432, add_quirk, MMC_QUIRK_ERASE_BROKEN),
|
|
|
|
+ MMC_FIXUP("SD32G", 0x41, 0x3432, add_quirk, MMC_QUIRK_ERASE_BROKEN),
|
|
|
|
+ MMC_FIXUP("SD64G", 0x41, 0x3432, add_quirk, MMC_QUIRK_ERASE_BROKEN),
|
|
|
|
|
|
|
|
END_FIXUP
|
|
|
|
};
|