mmc: tmio: Fix error handling when issuing CMD23
Subsystems (2)
PATCH 1/1 mmc: tmio: Fix error handling when issuing CMD23
From: Masaharu Hayakawa <[email protected]>
If an error was detected when CMD23 was issued, command sequence should be terminated with errors and CMD23 should be issued after retuning.
---
Ulf: I'd think this is suitable for stable...
drivers/mmc/host/tmio_mmc_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mmc/host/tmio_mmc_core.c +1 -1
@@ -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 ; }
Signature · 1 line
2.11.0
Quoted 8 lines · Wolfram Sang
From: Masaharu Hayakawa <[email protected]>
If an error was detected when CMD23 was issued, command sequence should be terminated with errors and CMD23 should be issued after retuning.
Fixes 8b22c3c18be5 ("mmc: tmio: add CMD23 support")Signed-off-by Masaharu Hayakawa <[email protected]>Signed-off-by Wolfram Sang <[email protected]>
Applied for fixes, thanks!
Kind regards
Uffe
Quoted 27 lines
---
Ulf: I'd think this is suitable for stable...
drivers/mmc/host/tmio_mmc_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/mmc/host/tmio_mmc_core.c +1
-2@@ -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 ; } --2.11.0
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html