mmc: fixup toshiba emmc secure discard [1/1]
authorYonghui Yu <yonghui.yu@amlogic.com>
Thu, 8 Nov 2018 09:30:39 +0000 (17:30 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Wed, 21 Nov 2018 03:25:00 +0000 (19:25 -0800)
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 <yonghui.yu@amlogic.com>
drivers/mmc/card/block.c

index d83c7a5..7774489 100644 (file)
@@ -2999,6 +2999,13 @@ static const struct mmc_fixup blk_fixups[] =
                  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.
         */