提交 176dcec5 编写于 作者: A Andy Shevchenko 提交者: Vinod Koul

dw_dmac: fill individual length of descriptor

It will be useful to have the length of the transfer in the descriptor. The
cyclic transfer functions remained untouched.
Signed-off-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: NViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: NVinod Koul <vinod.koul@intel.com>
上级 30d38a32
...@@ -757,6 +757,7 @@ dwc_prep_dma_memcpy(struct dma_chan *chan, dma_addr_t dest, dma_addr_t src, ...@@ -757,6 +757,7 @@ dwc_prep_dma_memcpy(struct dma_chan *chan, dma_addr_t dest, dma_addr_t src,
desc->lli.dar = dest + offset; desc->lli.dar = dest + offset;
desc->lli.ctllo = ctllo; desc->lli.ctllo = ctllo;
desc->lli.ctlhi = xfer_count; desc->lli.ctlhi = xfer_count;
desc->len = xfer_count << src_width;
if (!first) { if (!first) {
first = desc; first = desc;
...@@ -855,6 +856,7 @@ dwc_prep_slave_sg(struct dma_chan *chan, struct scatterlist *sgl, ...@@ -855,6 +856,7 @@ dwc_prep_slave_sg(struct dma_chan *chan, struct scatterlist *sgl,
} }
desc->lli.ctlhi = dlen >> mem_width; desc->lli.ctlhi = dlen >> mem_width;
desc->len = dlen;
if (!first) { if (!first) {
first = desc; first = desc;
...@@ -913,6 +915,7 @@ dwc_prep_slave_sg(struct dma_chan *chan, struct scatterlist *sgl, ...@@ -913,6 +915,7 @@ dwc_prep_slave_sg(struct dma_chan *chan, struct scatterlist *sgl,
len = 0; len = 0;
} }
desc->lli.ctlhi = dlen >> reg_width; desc->lli.ctlhi = dlen >> reg_width;
desc->len = dlen;
if (!first) { if (!first) {
first = desc; first = desc;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册