dma: mxs-dma: enable channel in device_issue_pending call

Enable channel in device_issue_pending call, so that the order between
cookie assignment and channel enabling can be ensured naturally.

It fixes the mxs gpmi-nand breakage which is caused by the incorrect
order of cookie assigning and channel enabling.

Suggested-by: Russell King <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
Tested-by: Huang Shijie <[email protected]>
Tested-by <[email protected]>
Signed-off-by: Vinod Koul <[email protected]>
This commit is contained in:
Shawn Guo 2012-04-11 13:29:31 +08:00 • committed by Vinod Koul
commit d04525ed03
3 changed files with 7 additions and 7 deletions

View file

@ -266,6 +266,7 @@ int start_dma_without_bch_irq(struct gpmi_nand_data *this,
desc->callback = dma_irq_callback;
desc->callback_param = this;
dmaengine_submit(desc);
dma_async_issue_pending(get_dma_chan(this));
/* Wait for the interrupt from the DMA block. */
err = wait_for_completion_timeout(dma_c, msecs_to_jiffies(1000));