mmc: card: fix timeout on erase/trim command due to sanitize
Sanitize command should never be issued with timeout argument of 0, cause then it invokes timeout. Moreover, sanitize command should not be called from routines that does erase/trim/secure-discard commands, but only from a routine that issues the sanitize spesifically.(mmc_blk_issue_sanitize_rq) Change-Id: Ia3e3737f4bad149edc2248b8a30d74a9bd812be1 Signed-off-by: Yaniv Gardi <ygardi@codeaurora.org> (cherry picked from commit 9a87427db940047907aee0dc86965645656f1ca9) Signed-off-by: Neha Pandey <nehap@codeaurora.org>
This commit is contained in:
committed by
Iliyan Malchev
parent
ebd937e2fe
commit
024c2afa8c
@@ -1002,9 +1002,6 @@ retry:
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (mmc_can_sanitize(card))
|
||||
err = mmc_switch(card, EXT_CSD_CMD_SET_NORMAL,
|
||||
EXT_CSD_SANITIZE_START, 1, 0);
|
||||
out_retry:
|
||||
if (err && !mmc_blk_reset(md, card->host, type))
|
||||
goto retry;
|
||||
|
||||
Reference in New Issue
Block a user