aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan T. Ivanov <ivan.ivanov@linaro.org>2015-09-03 17:59:26 +0300
committerSrinivas Kandagatla <srinivas.kandagatla@linaro.org>2016-07-05 14:06:39 +0100
commit59001c1289a42e502c93be58e85eda437198613a (patch)
tree479996c9d767cf761bd333d6dfba579a87c1219c
parent3453131bb7908fb514796f14658ee84fe261068d (diff)
dmaengine: adm: Use 'soft' flush when stopping DMA
'Soft' flush will commit current buffer to memory beffore stopping the engine. Used with peripheral devices which did not know a priory DMA transfer lenght, like size of input data in UART driver. Signed-off-by: Ivan T. Ivanov <ivan.ivanov@linaro.org>
-rw-r--r--drivers/dma/qcom_adm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/qcom_adm.c b/drivers/dma/qcom_adm.c
index 087f89f2e3db3..56d678b5379f7 100644
--- a/drivers/dma/qcom_adm.c
+++ b/drivers/dma/qcom_adm.c
@@ -466,7 +466,7 @@ static int adm_terminate_all(struct dma_chan *chan)
vchan_get_all_descriptors(&achan->vc, &head);
/* send flush command to terminate current transaction */
- writel_relaxed(0x0,
+ writel_relaxed(BIT(31),
adev->regs + ADM_CH_FLUSH_STATE0(achan->id, adev->ee));
spin_unlock_irqrestore(&achan->vc.lock, flags);