mmc: core: fix vendor DH SD cards as CMD23 broken

Dahua issues a series sd cards against SD spec that cannot support
CMD23 as a mandatory. We need to fix them.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: Ic2f4b082df9094e264e20f51a3a79dc0819f191c
This commit is contained in:
Shawn Lin
2022-04-06 14:59:03 +08:00
committed by Tao Huang
parent 3bad55bc2e
commit dd3e0d2141
2 changed files with 3 additions and 0 deletions

View File

@@ -77,6 +77,7 @@ struct mmc_fixup {
#define CID_MANFID_APACER 0x27
#define CID_MANFID_KINGSTON 0x70
#define CID_MANFID_HYNIX 0x90
#define CID_MANFID_DH 0xAD
#define CID_MANFID_NUMONYX 0xFE
#define END_FIXUP { NULL }

View File

@@ -59,6 +59,8 @@ static const struct mmc_fixup __maybe_unused mmc_blk_fixups[] = {
MMC_QUIRK_BLK_NO_CMD23),
MMC_FIXUP("APUSD", CID_MANFID_APACER, 0x5048, add_quirk_sd,
MMC_QUIRK_BLK_NO_CMD23),
MMC_FIXUP(CID_NAME_ANY, CID_MANFID_DH, CID_OEMID_ANY, add_quirk_sd,
MMC_QUIRK_BLK_NO_CMD23),
/*
* Some MMC cards need longer data read timeout than indicated in CSD.