109c502e13f6d9a3a220a2ad2e61957bf0e1d2f6
[openwrt/staging/stintel.git] /
1 From 4d702b5c68d6449d81281677f71de557f64cdce5 Mon Sep 17 00:00:00 2001
2 From: Jonathan Bell <jonathan@raspberrypi.com>
3 Date: Tue, 15 Oct 2024 14:35:42 +0100
4 Subject: [PATCH 1333/1350] mmc: quirks: disable cache on more known-bad
5 Sandisk card date ranges
6
7 Cards with manufacture dates in 2019 and 2020 have been seen in the wild
8 that hang indefinitely if issued a cache flush command in CQ mode.
9
10 Signed-off-by: Jonathan Bell <jonathan@raspberrypi.com>
11 ---
12 drivers/mmc/core/quirks.h | 12 ++++++++++++
13 1 file changed, 12 insertions(+)
14
15 --- a/drivers/mmc/core/quirks.h
16 +++ b/drivers/mmc/core/quirks.h
17 @@ -33,6 +33,18 @@ static const struct mmc_fixup __maybe_un
18 0, -1ull, SDIO_ANY_ID, SDIO_ANY_ID, add_quirk_sd,
19 MMC_QUIRK_BROKEN_SD_CACHE, EXT_CSD_REV_ANY),
20
21 + /*
22 + * Early Sandisk Extreme and Extreme Pro A2 cards never finish SD cache
23 + * flush in CQ mode. Latest card date this was seen on is 10/2020.
24 + */
25 + _FIXUP_EXT(CID_NAME_ANY, CID_MANFID_SANDISK_SD, 0x5344, 2019, CID_MONTH_ANY,
26 + 0, -1ull, SDIO_ANY_ID, SDIO_ANY_ID, add_quirk_sd,
27 + MMC_QUIRK_BROKEN_SD_CACHE, EXT_CSD_REV_ANY),
28 +
29 + _FIXUP_EXT(CID_NAME_ANY, CID_MANFID_SANDISK_SD, 0x5344, 2020, CID_MONTH_ANY,
30 + 0, -1ull, SDIO_ANY_ID, SDIO_ANY_ID, add_quirk_sd,
31 + MMC_QUIRK_BROKEN_SD_CACHE, EXT_CSD_REV_ANY),
32 +
33 END_FIXUP
34 };
35