Add method for triggering Sanitize command
This patch adds a method to trigger Sanitize command to MMC.
The Sanitize command is used for deleting the unmapped memory region
of the MMC device.
Signed-off-by: Yaniv Gardi <ygardi@codeaurora.org>
Acked-by: Subhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
diff --git a/mmc.c b/mmc.c
index a2de863..a757c8f 100644
--- a/mmc.c
+++ b/mmc.c
@@ -90,6 +90,11 @@
"Permanently disable the eMMC H/W Reset feature on <device>.\nNOTE! This is a one-time programmable (unreversible) change.",
NULL
},
+ { do_sanitize, -1,
+ "sanitize", "<device>\n"
+ "Send Sanitize command to the <device>.\nThis will delete the unmapped memory region of the device.",
+ NULL
+ },
{ 0, 0, 0, 0 }
};