aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Anderson <dianders@chromium.org>2015-04-03 14:13:06 -0400
committerUlf Hansson <ulf.hansson@linaro.org>2015-04-09 03:08:27 -0400
commitfd6741983386a7ec1c707a4c93e7a26e383cc571 (patch)
tree9b05d62eaad7beb9420385b3e55535629760bda0
parent8886a6fd19775eb43b7834850d0ad3f749b70053 (diff)
mmc: dw_mmc: Add a return in an unexpected cmd11 timeout
If we get an unexpected cmd11 timeout we shouldn't actually treat it as a timeout (not that we really expect to get an unexpected cmd11 timeout, but still). Fixes: 5c935165da79 ("mmc: dw_mmc: Add a timeout for sending CMD11") Reported-by: Jaehoon Chung <jh80.chung@samsung.com> Signed-off-by: Doug Anderson <dianders@chromium.org> Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-rw-r--r--drivers/mmc/host/dw_mmc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
index b613845396a1..c2b568352ce3 100644
--- a/drivers/mmc/host/dw_mmc.c
+++ b/drivers/mmc/host/dw_mmc.c
@@ -2579,8 +2579,10 @@ static void dw_mci_cmd11_timer(unsigned long arg)
2579{ 2579{
2580 struct dw_mci *host = (struct dw_mci *)arg; 2580 struct dw_mci *host = (struct dw_mci *)arg;
2581 2581
2582 if (host->state != STATE_SENDING_CMD11) 2582 if (host->state != STATE_SENDING_CMD11) {
2583 dev_info(host->dev, "Unexpected CMD11 timeout\n"); 2583 dev_warn(host->dev, "Unexpected CMD11 timeout\n");
2584 return;
2585 }
2584 2586
2585 host->cmd_status = SDMMC_INT_RTO; 2587 host->cmd_status = SDMMC_INT_RTO;
2586 set_bit(EVENT_CMD_COMPLETE, &host->pending_events); 2588 set_bit(EVENT_CMD_COMPLETE, &host->pending_events);