Skip to content

Commit da91f3e

Browse files
committed
mmc: sd: Biwin cards need a CMD49 quirk
The Biwin MS160 line of cards have a broken CMD49 handler and require this workaround. The CID match is somewhat broad, but the card name appears to be unique to these cards. Signed-off-by: Jonathan Bell <jonathan@raspberrypi.com>
1 parent 87a401c commit da91f3e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

drivers/mmc/core/card.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ struct mmc_fixup {
9090
#define CID_MANFID_SAMSUNG 0x15
9191
#define CID_MANFID_SAMSUNG_SD 0x1b
9292
#define CID_MANFID_APACER 0x27
93+
#define CID_MANFID_BIWIN_SD 0x4E
9394
#define CID_MANFID_SWISSBIT 0x5D
9495
#define CID_MANFID_KINGSTON 0x70
9596
#define CID_MANFID_TRANSCEND_SD 0x74

drivers/mmc/core/quirks.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ static const struct mmc_fixup __maybe_unused mmc_sd_fixups[] = {
8181
cid_rev(2, 0, 0, 0), -1ull, SDIO_ANY_ID, SDIO_ANY_ID, add_quirk_sd,
8282
MMC_QUIRK_NONSTD_SD_CMD49, EXT_CSD_REV_ANY),
8383

84+
/* Certain Biwin cards need a CMD49 workaround */
85+
_FIXUP_EXT("SMI ", CID_MANFID_BIWIN_SD, 0x4257, CID_YEAR_ANY, CID_MONTH_ANY,
86+
cid_rev(1, 0, 2025, 0), -1ull, SDIO_ANY_ID, SDIO_ANY_ID, add_quirk_sd,
87+
MMC_QUIRK_NONSTD_SD_CMD49, EXT_CSD_REV_ANY),
88+
8489
/* SD A2 allow-list - only trust CQ on these cards */
8590
/* Raspberry Pi A2 cards */
8691
_FIXUP_EXT(CID_NAME_ANY, CID_MANFID_LONGSYS_SD, 0x4c53, CID_YEAR_ANY, CID_MONTH_ANY,

0 commit comments

Comments
 (0)