Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 59a609d9 authored by Nicolas Ferre's avatar Nicolas Ferre Committed by Dan Williams
Browse files

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: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent f3c677b9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {