diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2013-01-25 04:48:02 -0500 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2013-01-28 07:04:42 -0500 |
commit | 176dcec50f3f0bc46f11b983c1a3bbc2dd3514fd (patch) | |
tree | 26f47f218200c789c785ee7397f5bed6c27e4d79 /drivers/dma | |
parent | 30d38a3286b140ae8cea84a93cde1f112e352aaf (diff) |
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 <andriy.shevchenko@linux.intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/dw_dmac.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/dma/dw_dmac.c b/drivers/dma/dw_dmac.c index 7f9f3324de17..5816da34129d 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, | |||
757 | desc->lli.dar = dest + offset; | 757 | desc->lli.dar = dest + offset; |
758 | desc->lli.ctllo = ctllo; | 758 | desc->lli.ctllo = ctllo; |
759 | desc->lli.ctlhi = xfer_count; | 759 | desc->lli.ctlhi = xfer_count; |
760 | desc->len = xfer_count << src_width; | ||
760 | 761 | ||
761 | if (!first) { | 762 | if (!first) { |
762 | first = desc; | 763 | first = desc; |
@@ -855,6 +856,7 @@ slave_sg_todev_fill_desc: | |||
855 | } | 856 | } |
856 | 857 | ||
857 | desc->lli.ctlhi = dlen >> mem_width; | 858 | desc->lli.ctlhi = dlen >> mem_width; |
859 | desc->len = dlen; | ||
858 | 860 | ||
859 | if (!first) { | 861 | if (!first) { |
860 | first = desc; | 862 | first = desc; |
@@ -913,6 +915,7 @@ slave_sg_fromdev_fill_desc: | |||
913 | len = 0; | 915 | len = 0; |
914 | } | 916 | } |
915 | desc->lli.ctlhi = dlen >> reg_width; | 917 | desc->lli.ctlhi = dlen >> reg_width; |
918 | desc->len = dlen; | ||
916 | 919 | ||
917 | if (!first) { | 920 | if (!first) { |
918 | first = desc; | 921 | first = desc; |