From 7bccf9b020c69ee380900416f4403d4835f3da04 Mon Sep 17 00:00:00 2001 From: "Song.Yu" Date: Sun, 13 Sep 2015 21:25:01 +0800 Subject: [PATCH] mmc: atmel-mci: fix state error. atmci_request_end modify the host->state, but the "state = STATE_IDLE;" overwrite it. --- drivers/mmc/host/atmel-mci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/atmel-mci.c b/drivers/mmc/host/atmel-mci.c index f58ceff7a46ace..0195da362f0bf4 100644 --- a/drivers/mmc/host/atmel-mci.c +++ b/drivers/mmc/host/atmel-mci.c @@ -1838,7 +1838,7 @@ static void atmci_tasklet_func(unsigned long priv) } atmci_request_end(host, host->mrq); - state = STATE_IDLE; + state = host->state; break; } } while (state != prev_state);