diff options
author | San Mehat <san@google.com> | 2009-12-02 20:24:58 -0500 |
---|---|---|
committer | Daniel Walker <dwalker@codeaurora.org> | 2010-03-18 16:37:22 -0400 |
commit | 6ac9ea69069804d357064357d0082b0eab4c87ce (patch) | |
tree | 33fd578d5efde5cd0c671d41e37397d5c2ecb9a1 /drivers/mmc | |
parent | 91bb64952a8c57826b01878925bea8831c71a492 (diff) |
mmc: msm_sdcc: Fix the dma exec function to use the proper delays
Signed-off-by: San Mehat <san@google.com>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/msm_sdcc.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/drivers/mmc/host/msm_sdcc.c b/drivers/mmc/host/msm_sdcc.c index 28899ee392e2..8329fd650c5f 100644 --- a/drivers/mmc/host/msm_sdcc.c +++ b/drivers/mmc/host/msm_sdcc.c | |||
@@ -177,17 +177,18 @@ msmsdcc_start_command_exec(struct msmsdcc_host *host, u32 arg, u32 c) { | |||
177 | static void | 177 | static void |
178 | msmsdcc_dma_exec_func(struct msm_dmov_cmd *cmd) | 178 | msmsdcc_dma_exec_func(struct msm_dmov_cmd *cmd) |
179 | { | 179 | { |
180 | struct msmsdcc_host *host = (struct msmsdcc_host *)cmd->data; | 180 | struct msmsdcc_host *host = (struct msmsdcc_host *)cmd->data; |
181 | 181 | ||
182 | writel(host->cmd_timeout, host->base + MMCIDATATIMER); | 182 | msmsdcc_writel(host, host->cmd_timeout, MMCIDATATIMER); |
183 | writel((unsigned int)host->curr.xfer_size, host->base + MMCIDATALENGTH); | 183 | msmsdcc_writel(host, (unsigned int)host->curr.xfer_size, MMCIDATALENGTH); |
184 | writel(host->cmd_pio_irqmask, host->base + MMCIMASK1); | 184 | msmsdcc_writel(host, host->cmd_pio_irqmask, MMCIMASK1); |
185 | writel(host->cmd_datactrl, host->base + MMCIDATACTRL); | 185 | msmsdcc_writel(host, host->cmd_datactrl, MMCIDATACTRL); |
186 | 186 | ||
187 | if (host->cmd_cmd) { | 187 | if (host->cmd_cmd) { |
188 | msmsdcc_start_command_exec(host, | 188 | msmsdcc_start_command_exec(host, |
189 | (u32)host->cmd_cmd->arg, (u32)host->cmd_c); | 189 | (u32) host->cmd_cmd->arg, |
190 | } | 190 | (u32) host->cmd_c); |
191 | } | ||
191 | host->dma.active = 1; | 192 | host->dma.active = 1; |
192 | } | 193 | } |
193 | 194 | ||