]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: mv_xor_v2: do not use descriptors not acked by async_tx
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 5 May 2017 09:57:46 +0000 (11:57 +0200)
committerVinod Koul <vinod.koul@intel.com>
Sun, 14 May 2017 12:53:19 +0000 (18:23 +0530)
commit9f1620e80591da3895eb9345631511937d35378f
tree0f489b31ab1861a600e8ed7dacefd87c6a83e78f
parent45b0cb1b22cd17e555f62e2902922aaff525049c
dmaengine: mv_xor_v2: do not use descriptors not acked by async_tx

Descriptors that have not been acknowledged by the async_tx layer
should not be re-used, so this commit adjusts the implementation of
mv_xor_v2_prep_sw_desc() to skip descriptors for which
async_tx_test_ack() is false.

Fixes: ae02b3dbd07f ("dmaengine: mv_xor_v2: new driver")
Cc: <stable@vger.kernel.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/mv_xor_v2.c