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)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 23 Jul 2017 02:55:15 +0000 (02:55 +0000)
commitb66a0f599495a0b64ac3b7b158cdf488e8c910f7
tree470f02d930ebbe05c724aa83fe87530e694487f0
parent01c176777ca2cd890bfa10cc4efff36221cb831a
dmaengine: mv_xor_v2: do not use descriptors not acked by async_tx

commit bc473da1ed726c975ad47f8d7d27631de11356d8 upstream.

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: 19a340b1a820 ("dmaengine: mv_xor_v2: new driver")
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/dma/mv_xor_v2.c