diff options
Diffstat (limited to 'crypto/async_tx/async_memcpy.c')
-rw-r--r-- | crypto/async_tx/async_memcpy.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/async_tx/async_memcpy.c b/crypto/async_tx/async_memcpy.c index faca0bc52068..25dcf33bbc2d 100644 --- a/crypto/async_tx/async_memcpy.c +++ b/crypto/async_tx/async_memcpy.c | |||
@@ -52,6 +52,7 @@ async_memcpy(struct page *dest, struct page *src, unsigned int dest_offset, | |||
52 | 52 | ||
53 | if (device) { | 53 | if (device) { |
54 | dma_addr_t dma_dest, dma_src; | 54 | dma_addr_t dma_dest, dma_src; |
55 | unsigned long dma_prep_flags = cb_fn ? DMA_PREP_INTERRUPT : 0; | ||
55 | 56 | ||
56 | dma_dest = dma_map_page(device->dev, dest, dest_offset, len, | 57 | dma_dest = dma_map_page(device->dev, dest, dest_offset, len, |
57 | DMA_FROM_DEVICE); | 58 | DMA_FROM_DEVICE); |
@@ -60,7 +61,7 @@ async_memcpy(struct page *dest, struct page *src, unsigned int dest_offset, | |||
60 | DMA_TO_DEVICE); | 61 | DMA_TO_DEVICE); |
61 | 62 | ||
62 | tx = device->device_prep_dma_memcpy(chan, dma_dest, dma_src, | 63 | tx = device->device_prep_dma_memcpy(chan, dma_dest, dma_src, |
63 | len, cb_fn != NULL); | 64 | len, dma_prep_flags); |
64 | } | 65 | } |
65 | 66 | ||
66 | if (tx) { | 67 | if (tx) { |