]> git.baikalelectronics.ru Git - kernel.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)
committerChris Ball <cjb@laptop.org>
Sat, 21 Apr 2012 00:28:58 +0000 (20:28 -0400)
commit62c76f860dcedbcecfdddeb3aa69191010a27476
tree54ffa48017525a2df2acd3404e43490c88b6c49a
parent664bada09646f503330d5c520f7f4ec8aee6b06f
mmc: fixes for eMMC v4.5 sanitize operation

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>
Cc: <stable@vger.kernel.org>
Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/card/block.c
drivers/mmc/core/core.c