]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: mv_xor: add support for a38x command in descriptor mode
authorLior Amsalem <alior@marvell.com>
Tue, 26 May 2015 13:07:34 +0000 (15:07 +0200)
committerVinod Koul <vinod.koul@intel.com>
Wed, 10 Jun 2015 16:48:30 +0000 (22:18 +0530)
commit2088c384bda992a120e55a6dbf786db18ef5b51f
tree0627dad8afc1a66825e80e137c57d89f579e0aa0
parentc70118b73f6351552c2a900547c25819fb5a5dd6
dmaengine: mv_xor: add support for a38x command in descriptor mode

The Marvell Armada 38x SoC introduce new features to the XOR engine,
especially the fact that the engine mode (MEMCPY/XOR/PQ/etc) can be part of
the descriptor and not set through the controller registers.

This new feature allows mixing of different commands (even PQ) on the same
channel/chain without the need to stop the engine to reconfigure the engine
mode.

Refactor the driver to be able to use that new feature on the Armada 38x,
while keeping the old behaviour on the older SoCs.

Signed-off-by: Lior Amsalem <alior@marvell.com>
Reviewed-by: Ofer Heifetz <oferh@marvell.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Documentation/devicetree/bindings/dma/mv-xor.txt
drivers/dma/mv_xor.c
drivers/dma/mv_xor.h