Skip to contentSkip to conversation

mmc: tmio: Fix error handling when issuing CMD23

PATCH In review Wolfram Sang 2 participants 2 messages Apr 3, 2018 – Apr 4, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

Fixes 8b22c3c18be5 ("mmc: tmio: add CMD23 support")

---

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
index e30df9ad8197..308029930304 100644
@@ -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
#1 lore raw
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")

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
index e30df9ad8197..308029930304 100644
@@ -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