summaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
authorNicolas Ferre <nicolas.ferre@atmel.com>2010-12-13 13:48:41 +0100
committerDan Williams <dan.j.williams@intel.com>2010-12-14 00:39:29 -0800
commit59a609d9b59be9452f168fe228befea53d5962ff (patch)
tree6ac0fe91c963ceefea29cf9cea039c4374f6aa24 /drivers/dma
parentf3c677b997757326e1f29d33060719a6a5091950 (diff)
downloadtalos-op-linux-59a609d9b59be9452f168fe228befea53d5962ff.tar.gz
talos-op-linux-59a609d9b59be9452f168fe228befea53d5962ff.zip
dmaengine: at_hdmac: fix buffer transfer size specification
Buffer transfer size is the number of transfers to be performed in relation with the width of the _source_ interface. So in the DMA_FROM_DEVICE case, it should be the register width that should be taken into account. Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/at_hdmac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/at_hdmac.c b/drivers/dma/at_hdmac.c
index a0f3e6a06e06..ea0ee81cff53 100644
--- a/drivers/dma/at_hdmac.c
+++ b/drivers/dma/at_hdmac.c
@@ -722,7 +722,7 @@ atc_prep_slave_sg(struct dma_chan *chan, struct scatterlist *sgl,
desc->lli.daddr = mem;
desc->lli.ctrla = ctrla
| ATC_DST_WIDTH(mem_width)
- | len >> mem_width;
+ | len >> reg_width;
desc->lli.ctrlb = ctrlb;
if (!first) {
OpenPOWER on IntegriCloud