aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dma-debug.c
diff options
context:
space:
mode:
authorThomas Petazzoni <[email protected]>2015-12-22 10:43:28 +0000
committerVinod Koul <[email protected]>2016-01-06 10:12:27 +0000
commit81aafb3e0e16bcca060efa6b5e477e812e4154bc (patch)
treed0e5037cba35f34745365192ae605b1e65c01d3d /lib/dma-debug.c
parentdmaengine: mv_xor: remove mv_xor_chan->current_type field (diff)
downloadkernel-81aafb3e0e16bcca060efa6b5e477e812e4154bc.tar.gz
kernel-81aafb3e0e16bcca060efa6b5e477e812e4154bc.zip
dmaengine: mv_xor: de-duplicate mv_chan_set_mode*()
When commit 6f166312c6ea2 ("dmaengine: mv_xor: add support for a38x command in descriptor mode") added support for the descriptor mode available in Marvell Armada 38x and later SoCs, it added a new function mv_chan_set_mode_to_desc() which allows to configure a XOR channel to get the specific operation to be done from each individual DMA descriptor. However, this function was mainly a duplicate of the existing mv_chan_set_mode(), with just the operation being different. This commit re-organizes the code into a single mv_chan_set_mode() function, which takes the operation mode as argument, and the mv_xor_channel_add() function decides whether to use XOR_OPERATION_MODE_IN_DESC or XOR_OPERATION_MODE_XOR. Signed-off-by: Thomas Petazzoni <[email protected]> Reviewed-by: Maxime Ripard <[email protected]> Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'lib/dma-debug.c')
0 files changed, 0 insertions, 0 deletions