]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: card: Skip secure erase on MoviNAND; causes unrecoverable corruption.
authorIan Chen <ian.cy.chen@samsung.com>
Wed, 29 Aug 2012 06:05:36 +0000 (15:05 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Oct 2012 17:29:54 +0000 (10:29 -0700)
commitd409354d1b8a1e47b8f29887179949ec951ffe83
treea60384b71bacbc43d1dc3b1a5136b1e7a8ebc99f
parente66a381518f9ebf98cdc583d20ae706aa5d1dc28
mmc: card: Skip secure erase on MoviNAND; causes unrecoverable corruption.

commit 3550ccdb9d8d350e526b809bf3dd92b550a74fe1 upstream.

For several MoviNAND eMMC parts, there are known issues with secure
erase and secure trim.  For these specific MoviNAND devices, we skip
these operations.

Specifically, there is a bug in the eMMC firmware that causes
unrecoverable corruption when the MMC is erased with MMC_CAP_ERASE
enabled.

References:

http://forum.xda-developers.com/showthread.php?t=1644364
https://plus.google.com/111398485184813224730/posts/21pTYfTsCkB#111398485184813224730/posts/21pTYfTsCkB

Signed-off-by: Ian Chen <ian.cy.chen@samsung.com>
Reviewed-by: Namjae Jeon <linkinjeon@gmail.com>
Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
Reviewed-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
include/linux/mmc/card.h