dmaengine: idma64: make better performance on pause / resume
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 14 Sep 2015 08:55:40 +0000 (11:55 +0300)
committerVinod Koul <vinod.koul@intel.com>
Fri, 25 Sep 2015 02:24:05 +0000 (07:54 +0530)
commit2e9b55becc905207eb01e24bc282f8062cc497b5
treeda693a187714cc6e229d64159ead64bded09842c
parent581ec089a5476a9ddc8d0707e47315a2609297ad
dmaengine: idma64: make better performance on pause / resume

Accordingly to the documentation the CH_DRAIN bit enforses single bursts when
channel is going to be suspended. This, in case when channel will be resumed,
makes data to flow in non-optimal mode until DMA returns to full burst mode.
The fix differentiates pause / resume cycle from pause / terminate and sets
CH_DRAIN bit accordingly.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/idma64.c