mmc: card: Add Sanitize unit test

This test write data to the card, then send DISCARD on random
addresses on the card, send SANITIZE to the card to erase all
the unmapped areas.

Change-Id: I2904023ccd258e64b99b004bacfbe576b0ead59a
Signed-off-by: Maya Erez <merez@codeaurora.org>
This commit is contained in:
Maya Erez
2012-07-18 21:52:33 +03:00
committed by Stephen Boyd
parent 47bf4c6b24
commit 5ff3f387d7
3 changed files with 126 additions and 0 deletions

View File

@@ -65,6 +65,7 @@ enum req_unique_type {
REQ_UNIQUE_NONE,
REQ_UNIQUE_DISCARD,
REQ_UNIQUE_FLUSH,
REQ_UNIQUE_SANITIZE,
};
/**