]> 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)
commite78c854acf180bcf5153475f3ada86db33c47516
tree0f489b31ab1861a600e8ed7dacefd87c6a83e78f
parentd6db8e435b0d744c405ae159b81bf07bc8b83f75
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: 3b017a380a25 ("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