From: Andy Shevchenko Date: Fri, 25 Jan 2013 09:48:02 +0000 (+0200) Subject: dw_dmac: fill individual length of descriptor X-Git-Tag: v3.9-rc1~12^2~21 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=176dcec50f3f0bc46f11b983c1a3bbc2dd3514fd;p=platform%2Fupstream%2Fkernel-adaptation-pc.git 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: Andy Shevchenko Acked-by: Viresh Kumar Signed-off-by: Vinod Koul --- diff --git a/drivers/dma/dw_dmac.c b/drivers/dma/dw_dmac.c index 7f9f332..5816da3 100644 --- a/drivers/dma/dw_dmac.c +++ b/drivers/dma/dw_dmac.c @@ -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.ctllo = ctllo; desc->lli.ctlhi = xfer_count; + desc->len = xfer_count << src_width; if (!first) { first = desc; @@ -855,6 +856,7 @@ slave_sg_todev_fill_desc: } desc->lli.ctlhi = dlen >> mem_width; + desc->len = dlen; if (!first) { first = desc; @@ -913,6 +915,7 @@ slave_sg_fromdev_fill_desc: len = 0; } desc->lli.ctlhi = dlen >> reg_width; + desc->len = dlen; if (!first) { first = desc;