[PATCH 3/5] mmc: msm: fix msmsdcc_disable_clocks spinlock protection

From: Daniel Walker
Date: Mon Dec 20 2010 - 18:17:28 EST


The function msmsdcc_disable_clocks needs to be called with
the host lock held.

Signed-off-by: Daniel Walker <dwalker@xxxxxxxxxxxxxx>
---
drivers/mmc/host/msm_sdcc.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mmc/host/msm_sdcc.c b/drivers/mmc/host/msm_sdcc.c
index 01bb684..c64a659 100644
--- a/drivers/mmc/host/msm_sdcc.c
+++ b/drivers/mmc/host/msm_sdcc.c
@@ -261,10 +261,10 @@ msmsdcc_dma_complete_func(struct msm_dmov_cmd *cmd,
host->curr.cmd = NULL;
mrq->data->bytes_xfered = host->curr.data_xfered;

- spin_unlock_irqrestore(&host->lock, flags);
-
msmsdcc_disable_clocks(host, 1);

+ spin_unlock_irqrestore(&host->lock, flags);
+
mmc_request_done(host->mmc, mrq);
return;
} else
--
1.7.0.4

--
Sent by a consultant of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/