|
|
@@ -556,7 +556,7 @@ static int cryp_set_dma_transfer(struct cryp_ctx *ctx,
|
|
|
desc = dmaengine_prep_slave_sg(channel,
|
|
|
ctx->device->dma.sg_src,
|
|
|
ctx->device->dma.sg_src_len,
|
|
|
- direction, DMA_CTRL_ACK);
|
|
|
+ DMA_MEM_TO_DEV, DMA_CTRL_ACK);
|
|
|
break;
|
|
|
|
|
|
case DMA_FROM_DEVICE:
|
|
|
@@ -580,7 +580,7 @@ static int cryp_set_dma_transfer(struct cryp_ctx *ctx,
|
|
|
desc = dmaengine_prep_slave_sg(channel,
|
|
|
ctx->device->dma.sg_dst,
|
|
|
ctx->device->dma.sg_dst_len,
|
|
|
- direction,
|
|
|
+ DMA_DEV_TO_MEM,
|
|
|
DMA_CTRL_ACK |
|
|
|
DMA_PREP_INTERRUPT);
|
|
|
|