diff options
Diffstat (limited to 'arch/arm/mach-msm/dma.c')
-rw-r--r-- | arch/arm/mach-msm/dma.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-msm/dma.c b/arch/arm/mach-msm/dma.c index 3d725ae518e4..d029d1f5f9e2 100644 --- a/arch/arm/mach-msm/dma.c +++ b/arch/arm/mach-msm/dma.c | |||
@@ -69,6 +69,8 @@ void msm_dmov_enqueue_cmd(unsigned id, struct msm_dmov_cmd *cmd) | |||
69 | writel(DMOV_CONFIG_IRQ_EN, DMOV_CONFIG(id)); | 69 | writel(DMOV_CONFIG_IRQ_EN, DMOV_CONFIG(id)); |
70 | } | 70 | } |
71 | #endif | 71 | #endif |
72 | if (cmd->execute_func) | ||
73 | cmd->execute_func(cmd); | ||
72 | PRINT_IO("msm_dmov_enqueue_cmd(%d), start command, status %x\n", id, status); | 74 | PRINT_IO("msm_dmov_enqueue_cmd(%d), start command, status %x\n", id, status); |
73 | list_add_tail(&cmd->list, &active_commands[id]); | 75 | list_add_tail(&cmd->list, &active_commands[id]); |
74 | if (!channel_active) | 76 | if (!channel_active) |
@@ -116,6 +118,7 @@ int msm_dmov_exec_cmd(unsigned id, unsigned int cmdptr) | |||
116 | 118 | ||
117 | cmd.dmov_cmd.cmdptr = cmdptr; | 119 | cmd.dmov_cmd.cmdptr = cmdptr; |
118 | cmd.dmov_cmd.complete_func = dmov_exec_cmdptr_complete_func; | 120 | cmd.dmov_cmd.complete_func = dmov_exec_cmdptr_complete_func; |
121 | cmd.dmov_cmd.execute_func = NULL; | ||
119 | cmd.id = id; | 122 | cmd.id = id; |
120 | init_completion(&cmd.complete); | 123 | init_completion(&cmd.complete); |
121 | 124 | ||
@@ -221,6 +224,8 @@ static irqreturn_t msm_datamover_irq_handler(int irq, void *dev_id) | |||
221 | cmd = list_entry(ready_commands[id].next, typeof(*cmd), list); | 224 | cmd = list_entry(ready_commands[id].next, typeof(*cmd), list); |
222 | list_del(&cmd->list); | 225 | list_del(&cmd->list); |
223 | list_add_tail(&cmd->list, &active_commands[id]); | 226 | list_add_tail(&cmd->list, &active_commands[id]); |
227 | if (cmd->execute_func) | ||
228 | cmd->execute_func(cmd); | ||
224 | PRINT_FLOW("msm_datamover_irq_handler id %d, start command\n", id); | 229 | PRINT_FLOW("msm_datamover_irq_handler id %d, start command\n", id); |
225 | writel(cmd->cmdptr, DMOV_CMD_PTR(id)); | 230 | writel(cmd->cmdptr, DMOV_CMD_PTR(id)); |
226 | } | 231 | } |