]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
dmaengine: at_xdmac: fix at_xdmac_prep_dma_memcpy()
authorCyrille Pitchen <cyrille.pitchen@atmel.com>
Mon, 7 Dec 2015 14:58:56 +0000 (15:58 +0100)
committerVinod Koul <vinod.koul@intel.com>
Thu, 10 Dec 2015 04:18:01 +0000 (09:48 +0530)
commitaa876cd4b41b4e3bcfbc75dd5750d75d5fa97a67
tree4a4e8f074b5bc0ea2a3f8746bc0366ff4ff95dd6
parentbcb4b619116569d071b26c6f33506459a560ab6a
dmaengine: at_xdmac: fix at_xdmac_prep_dma_memcpy()

This patch fixes at_xdmac_prep_dma_memcpy(). Indeed the data width field
of the Channel Configuration register was not updated properly in the
loop: the bits of the dwidth field were not cleared before adding their
new value.

Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
Acked-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Fixes: e1f7c9eee70 ("dmaengine: at_xdmac: creation of the atmel eXtended DMA Controller driver")
Cc: stable@vger.kernel.org #4.1 and later
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/at_xdmac.c