mmc: card: Skip secure erase on MoviNAND; causes unrecoverable corruption.
authorIan Chen <[email protected]>
Wed, 29 Aug 2012 06:05:36 +0000 (15:05 +0900)
committerChris Ball <[email protected]>
Tue, 4 Sep 2012 17:58:10 +0000 (13:58 -0400)
commit3550ccdb9d8d350e526b809bf3dd92b550a74fe1
tree8e656ed3f53adca5c0bc7a598e44d62476f51e78
parent9623b5b9192b349bcadb31cce159072a78ac6972
mmc: card: Skip secure erase on MoviNAND; causes unrecoverable corruption.

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 <[email protected]>
Reviewed-by: Namjae Jeon <[email protected]>
Acked-by: Jaehoon Chung <[email protected]>
Reviewed-by: Linus Walleij <[email protected]>
Cc: stable <[email protected]> [3.0+]
Signed-off-by: Chris Ball <[email protected]>
drivers/mmc/card/block.c
include/linux/mmc/card.h