mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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:
parent
60f2951e3a
commit
d04525ed03
3 changed files with 7 additions and 7 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in a new issue