Skip to content

Commit

Permalink
dw_dmac: fill individual length of descriptor
Browse files Browse the repository at this point in the history
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 <andriy.shevchenko@linux.intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
  • Loading branch information
Andy Shevchenko authored and Vinod Koul committed Jan 28, 2013
1 parent 30d38a3 commit 176dcec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/dma/dw_dmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -855,6 +856,7 @@ dwc_prep_slave_sg(struct dma_chan *chan, struct scatterlist *sgl,
}

desc->lli.ctlhi = dlen >> mem_width;
desc->len = dlen;

if (!first) {
first = desc;
Expand Down Expand Up @@ -913,6 +915,7 @@ dwc_prep_slave_sg(struct dma_chan *chan, struct scatterlist *sgl,
len = 0;
}
desc->lli.ctlhi = dlen >> reg_width;
desc->len = dlen;

if (!first) {
first = desc;
Expand Down

0 comments on commit 176dcec

Please sign in to comment.