Skip to content

Commit 527d6f5

Browse files
P33Mpelwell
authored andcommitted
mmc: quirks: add MMC_QUIRK_BROKEN_ERASE for Phison/Integral cards
Recent Integral cards end up with corrupt sectors after a flash erase. This covers sizes for the A2 range, which can't be differentiated from the A1 range which might not have the same issue. Signed-off-by: Jonathan Bell <jonathan@raspberrypi.com>
1 parent 48a15bc commit 527d6f5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

drivers/mmc/core/quirks.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,15 @@ static const struct mmc_fixup __maybe_unused mmc_blk_fixups[] = {
162162
MMC_FIXUP("SD32G", 0x41, 0x3432, add_quirk, MMC_QUIRK_ERASE_BROKEN),
163163
MMC_FIXUP("SD64G", 0x41, 0x3432, add_quirk, MMC_QUIRK_ERASE_BROKEN),
164164

165+
/*
166+
* Larger Integral SD cards using rebranded Phison controllers trash
167+
* nearby flash blocks after erases.
168+
*/
169+
MMC_FIXUP("SD64G", 0x27, 0x5048, add_quirk, MMC_QUIRK_ERASE_BROKEN),
170+
MMC_FIXUP("SD128", 0x27, 0x5048, add_quirk, MMC_QUIRK_ERASE_BROKEN),
171+
MMC_FIXUP("SD256", 0x27, 0x5048, add_quirk, MMC_QUIRK_ERASE_BROKEN),
172+
MMC_FIXUP("SD512", 0x27, 0x5048, add_quirk, MMC_QUIRK_ERASE_BROKEN),
173+
165174
END_FIXUP
166175
};
167176

0 commit comments

Comments
 (0)