]> git.baikalelectronics.ru Git - kernel.git/commit
dma: mv_xor: Simplify the DMA_MEMCPY operation
authorLior Amsalem <alior@marvell.com>
Wed, 27 Aug 2014 13:52:50 +0000 (10:52 -0300)
committerVinod Koul <vinod.koul@intel.com>
Tue, 23 Sep 2014 14:47:00 +0000 (20:17 +0530)
commitbe1ef01dd67e6b1971b0239a1be044086dd1e6aa
treec5f923dd0382720ec0b3121661333dfe91929996
parent73bda2b2b5c60ca3e04196f185f0f067f0ae2497
dma: mv_xor: Simplify the DMA_MEMCPY operation

A memory copy operation can be expressed as an XOR operation with one
source. This commit removes code duplication in the driver by reusing
the XOR operation for the MEMCPY.

As an added benefit, we can now put MEMCPY and XOR descriptors on the
same chain, which improves performance.

Signed-off-by: Lior Amsalem <alior@marvell.com>
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/mv_xor.c