]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: card: Adding support for sanitize in eMMC 4.5
authorMaya Erez <merez@codeaurora.org>
Thu, 18 Apr 2013 12:41:55 +0000 (15:41 +0300)
committerChris Ball <cjb@laptop.org>
Sun, 26 May 2013 18:23:13 +0000 (14:23 -0400)
commit57d660663d918244fc67212950020d9555567c6b
tree78d66b7a04b5e339c2e0faa24290f72eb8f8bae4
parent92e818a2b14dfb79dc0664b65c3a3c2259342e97
mmc: card: Adding support for sanitize in eMMC 4.5

The sanitize support is added as a user-app ioctl call, and
was removed from the block-device request, since its purpose is
to be invoked not via File-System but by a user.

This feature deletes the unmap memory region of the eMMC card,
by writing to a specific register in the EXT_CSD.

unmap region is the memory region that was previously deleted
(by erase, trim or discard operation).

In order to avoid timeout when sanitizing large-scale cards,
the timeout for sanitize operation is 240 seconds.

Signed-off-by: Yaniv Gardi <ygardi@codeaurora.org>
Signed-off-by: Maya Erez <merez@codeaurora.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/card/block.c
drivers/mmc/card/queue.c
drivers/mmc/core/core.c
drivers/mmc/core/mmc_ops.c
include/linux/mmc/core.h
include/linux/mmc/host.h