]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Apr 2012 17:16:35 +0000 (10:16 -0700)
commit03fe1816469e4114f91f271c87dcb716dac84b6e
tree31e74c73cf56bfa90e954275478bbc297cc7dc9f
parent7c369b7f52feba0f10c6409e36552ff92bed2133
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/card/block.c
drivers/mmc/core/core.c