Explorar o código

dma: dw_dmac: clear suspend bit during termination

The DMA transfer could not be established if previously it was paused and
terminated. In that case the channel's suspend bit remains set that prevents to
transfer anything until channel is resumed.

The patch adds the dwc_chan_resume() call instead of a plain flag assignment.
That clears the DWC_CFGL_CH_SUSP bit as well during termination.

Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Heikki Krogerus %!s(int64=12) %!d(string=hai) anos
pai
achega
a5dbff111c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      drivers/dma/dw_dmac.c

+ 1 - 1
drivers/dma/dw_dmac.c

@@ -1059,7 +1059,7 @@ static int dwc_control(struct dma_chan *chan, enum dma_ctrl_cmd cmd,
 
 
 		dwc_chan_disable(dw, dwc);
 		dwc_chan_disable(dw, dwc);
 
 
-		dwc->paused = false;
+		dwc_chan_resume(dwc);
 
 
 		/* active_list entries will end up before queued entries */
 		/* active_list entries will end up before queued entries */
 		list_splice_init(&dwc->queue, &list);
 		list_splice_init(&dwc->queue, &list);