From 29e995bb4055fcfa4400ea503e62eb2f094fa0cc Mon Sep 17 00:00:00 2001 From: Yonghui Yu Date: Thu, 8 Nov 2018 17:30:39 +0800 Subject: [PATCH] mmc: fixup toshiba emmc secure discard [1/1] PD#SWPL-1937 Problem: secure discard and trim may cost 5mins on toshiba "004GA0" emmc. Solution: using normal discard operation instead. Verify: W400 Change-Id: I7fd23867f8ae0af9192377de8f8c15609ef809ed Signed-off-by: Yonghui Yu --- drivers/mmc/card/block.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c index d83c7a5331f1..7774489d89ab 100644 --- a/drivers/mmc/card/block.c +++ b/drivers/mmc/card/block.c @@ -2998,6 +2998,13 @@ static const struct mmc_fixup blk_fixups[] = MMC_FIXUP("VZL00M", CID_MANFID_SAMSUNG, CID_OEMID_ANY, add_quirk_mmc, MMC_QUIRK_SEC_ERASE_TRIM_BROKEN), + /* + * On these Toshiba eMMC, performing secure erase or + * secure trim will cost more than 5 minutes. + */ + MMC_FIXUP("004GA0", CID_MANFID_TOSHIBA, CID_OEMID_ANY, add_quirk_mmc, + MMC_QUIRK_SEC_ERASE_TRIM_BROKEN), + /* * On Some Kingston eMMCs, performing trim can result in * unrecoverable data conrruption occasionally due to a firmware bug.