Merge "ipq40xx: mmc: Added erase quirk for eMMC part"
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index e2c3c86..34ab736 100644
--- a/drivers/mmc/mmc.c
+++ b/drivers/mmc/mmc.c
@@ -1515,6 +1515,9 @@
 	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;
 }
diff --git a/include/mmc.h b/include/mmc.h
index 68bd128..ee18ae3 100644
--- a/include/mmc.h
+++ b/include/mmc.h
@@ -301,6 +301,7 @@
 
 #define MMC_MID_MASK (0xFF << 24)
 #define MMC_MID_SANDISK (0x45 << 24)
+#define MMC_MID_TOSHIBA (0x11 << 24)
 
 /*
  * Quirks