Skip to content

Commit

Permalink
mmc: tmio: Fix error handling when issuing CMD23
Browse files Browse the repository at this point in the history
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 <masaharu.hayakawa.ry@renesas.com>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Cc: <stable@vger.kernel.org> # 4.13+
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
  • Loading branch information
Masaharu Hayakawa authored and Ulf Hansson committed Apr 4, 2018
1 parent d0a0852 commit fc167da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mmc/host/tmio_mmc_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@ static void tmio_mmc_finish_request(struct tmio_mmc_host *host)
host->check_scc_error(host);

/* If SET_BLOCK_COUNT, continue with main command */
if (host->mrq) {
if (host->mrq && !mrq->cmd->error) {
tmio_process_mrq(host, mrq);
return;
}
Expand Down

0 comments on commit fc167da

Please sign in to comment.