ipq40xx: mmc: Added erase quirk for eMMC part

eMMC part THGBMBG5D1KBAIT is taking long time for the secure trim.
This leads to erase timeout. Manufacturer ID based quirk is added
for the specific part to use trim instead of secure trim for block erase.

Change-Id: Id4ecfde9585e112521863439f684feb5e0caaa51
Signed-off-by: Vinoth Gnanasekaran <vgnana@codeaurora.org>
This commit is contained in:
Vinoth Gnanasekaran 2018-05-31 19:48:39 +05:30 committed by Gerrit - the friendly Code Review server
parent 9f318b6fca
commit 4dc439fee1
2 changed files with 4 additions and 0 deletions

View file

@ -1515,6 +1515,9 @@ static int mmc_startup(struct mmc *mmc)
if (((mmc->cid[0] & MMC_MID_MASK) == MMC_MID_SANDISK) &&
(strncmp(mmc->block_dev.product, "SEM08", 5) == 0))
mmc->quirks |= MMC_QUIRK_SECURE_TRIM;
if (((mmc->cid[0] & MMC_MID_MASK) == MMC_MID_TOSHIBA) &&
(strncmp(mmc->block_dev.product, "004GE", 5) == 0))
mmc->quirks |= MMC_QUIRK_SECURE_TRIM;
return 0;
}

View file

@ -301,6 +301,7 @@
#define MMC_MID_MASK (0xFF << 24)
#define MMC_MID_SANDISK (0x45 << 24)
#define MMC_MID_TOSHIBA (0x11 << 24)
/*
* Quirks