mmc: fixes for eMMC v4.5 sanitize operation
authorAdrian Hunter <adrian.hunter@intel.com>
Thu, 5 Apr 2012 11:45:48 +0000 (14:45 +0300)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 11 May 2012 12:13:52 +0000 (13:13 +0100)
commit2e4e5f0d0317d1d9b01326e79f8dce7215fc3c41
tree1c21d921ff1f82c04fbd63f1d9df7a61f76a821f
parent531503404e61ab77da44f0ea7e6b2ae16bcf004a
mmc: fixes for eMMC v4.5 sanitize operation

commit 283028122db37621b124f079ca8eae5b64807ad4 upstream.

eMMC v4.5 sanitize operation erases all copies of unmapped
data.  However trim or erase operations must be used first
to unmap the required sectors.  That was not being done.

Fixes apply to linux 3.2 on.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/mmc/card/block.c
drivers/mmc/core/core.c