Skip to content

Commit 157efa8

Browse files
author
Vinod Koul
committed
async_tx: use DMA_COMPLETE for dma completion status
Acked-by: Dan Williams <dan.j.williams@intel.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
1 parent 8f1fd11 commit 157efa8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎crypto/async_tx/async_tx.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ async_tx_channel_switch(struct dma_async_tx_descriptor *depend_tx,
128128
}
129129
device->device_issue_pending(chan);
130130
} else {
131-
if (dma_wait_for_async_tx(depend_tx) != DMA_SUCCESS)
131+
if (dma_wait_for_async_tx(depend_tx) != DMA_COMPLETE)
132132
panic("%s: DMA error waiting for depend_tx\n",
133133
__func__);
134134
tx->tx_submit(tx);
@@ -280,7 +280,7 @@ void async_tx_quiesce(struct dma_async_tx_descriptor **tx)
280280
* we are referring to the correct operation
281281
*/
282282
BUG_ON(async_tx_test_ack(*tx));
283-
if (dma_wait_for_async_tx(*tx) != DMA_SUCCESS)
283+
if (dma_wait_for_async_tx(*tx) != DMA_COMPLETE)
284284
panic("%s: DMA error waiting for transaction\n",
285285
__func__);
286286
async_tx_ack(*tx);

0 commit comments

Comments
 (0)