Message ID | 1449072616-22377-1-git-send-email-ludovic.desroches@atmel.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
On Wed, Dec 02, 2015 at 05:10:16PM +0100, Ludovic Desroches wrote: > From: Sylvain ETIENNE <Sylvain.ETIENNE@ingenico.com> > > When performing interleaved transfers with numf > 1, an extra line is > copied. The mbr.bc field is incremented once too often. The length of > the block is (BLEN+1) microblocks. Applied, thanks
diff --git a/drivers/dma/at_xdmac.c b/drivers/dma/at_xdmac.c index 7f039de..c8faaa5 100644 --- a/drivers/dma/at_xdmac.c +++ b/drivers/dma/at_xdmac.c @@ -965,7 +965,9 @@ at_xdmac_prep_interleaved(struct dma_chan *chan, NULL, src_addr, dst_addr, xt, xt->sgl); - for (i = 0; i < xt->numf; i++) + + /* Length of the block is (BLEN+1) microblocks. */ + for (i = 0; i < xt->numf - 1; i++) at_xdmac_increment_block_count(chan, first); dev_dbg(chan2dev(chan), "%s: add desc 0x%p to descs_list 0x%p\n",