Skip to content

Commit fc167da

Browse files
Masaharu Hayakawastorulf
authored andcommitted
mmc: tmio: Fix error handling when issuing CMD23
If an error was detected when CMD23 was issued, command sequence should be terminated with errors and CMD23 should be issued after retuning. Fixes: 8b22c3c ("mmc: tmio: add CMD23 support") Signed-off-by: Masaharu Hayakawa <[email protected]> Signed-off-by: Wolfram Sang <[email protected]> Cc: <[email protected]> # 4.13+ Signed-off-by: Ulf Hansson <[email protected]>
1 parent d0a0852 commit fc167da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mmc/host/tmio_mmc_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,7 @@ static void tmio_mmc_finish_request(struct tmio_mmc_host *host)
913913
host->check_scc_error(host);
914914

915915
/* If SET_BLOCK_COUNT, continue with main command */
916-
if (host->mrq) {
916+
if (host->mrq && !mrq->cmd->error) {
917917
tmio_process_mrq(host, mrq);
918918
return;
919919
}

0 commit comments

Comments
 (0)