Successful TRIM is successful! Thanks to
@Lanchon, I have reenabled MMC_CAP_ERASE on Raw TW and fstrim works properly. This kernel already includes the official Samsung fix for brickbug, so all I had to do was to remove two comments.
If you feel adventurous, flash
this zImage (
only for Touchwiz) using ODIN/heimdall and test it for yourself. This is the kernel I'm running right now on my main phone. I don't take any responsability if your device breaks, but that shouldn't happen.
Edit: basic howto
- flash the kernel, reboot
- install the LagFix app from
here
- trim /system, /data and /cache, then reboot.
- for better results use 'adb shell' and launch 'fstrim -v /system; fstrim -v /data; fstrim -v /cache; fstrim -v /preload' as well.
Edit: commit introducing the change
here. it's small because Samsung's MMC_QUIRK_MOVINAND_SECURE fix is already included in the stock JB kernel.