From 1af5d830bb56de4bccf902d6e961811e8c602254 Mon Sep 17 00:00:00 2001 From: Lanchon Date: Tue, 19 Jan 2016 05:05:07 -0300 Subject: Enable TRIM on the Galaxy S2 family WARNING!!! DO NOT MERGE THIS COMMIT WITHOUT VERIFYING THAT ALL THE REQUIRED PATCHES ARE APPLIED TO YOUR KERNEL. FAILURE TO HEED THIS WARNING MAY RESULT IN UNRECOVERABLE DEVICE BRICKS. For more information, please see: http://forum.xda-developers.com/galaxy-s2/development-derivatives/rom-brickbug-aftermath-speeding-t2843238 Change-Id: I193d5117ca63106265d6aac64c265b5c214612c1 (cherry picked from commit b784e843520149f55316bfc012338563dab3bbff) --- drivers/mmc/host/mshci.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'drivers/mmc') diff --git a/drivers/mmc/host/mshci.c b/drivers/mmc/host/mshci.c index f93a7eb..6ce9987 100644 --- a/drivers/mmc/host/mshci.c +++ b/drivers/mmc/host/mshci.c @@ -2046,7 +2046,17 @@ int mshci_add_host(struct mshci_host *host) mmc->f_min = 400000; mmc->f_max = host->max_clk; #ifdef CONFIG_MACH_U1 - mmc->caps |= MMC_CAP_SDIO_IRQ; + /* + * BrickbugAftermath: + * Revert suppression of ERASE/TRIM/DISCARD eMMC commands. + * + * Current kernel bugfix status: + * -Brickbug: has fix + * -MAG2GA TRIM bug: has fix + * -Wear Leveling bug: HAS NO FIX + */ + /* mmc->caps |= MMC_CAP_SDIO_IRQ; */ + mmc->caps |= MMC_CAP_SDIO_IRQ | MMC_CAP_ERASE; #else mmc->caps |= MMC_CAP_SDIO_IRQ | MMC_CAP_ERASE; #endif -- cgit v1.1