diff options
Diffstat (limited to 'drivers/crypto')
-rw-r--r-- | drivers/crypto/caam/caamalg_qi2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/crypto/caam/caamalg_qi2.c b/drivers/crypto/caam/caamalg_qi2.c index c9e8707..06496fe 100644 --- a/drivers/crypto/caam/caamalg_qi2.c +++ b/drivers/crypto/caam/caamalg_qi2.c @@ -3822,7 +3822,7 @@ static void dpaa2_caam_process_fd(struct dpaa2_caam_priv *priv, */ req = dpaa2_caam_iova_to_virt(priv, dpaa2_fd_get_addr(fd)); dma_unmap_single(priv->dev, req->fd_flt_dma, sizeof(req->fd_flt), - DMA_TO_DEVICE); + DMA_BIDIRECTIONAL); req->cbk(req->ctx, dpaa2_fd_get_frc(fd)); } @@ -4400,7 +4400,7 @@ int dpaa2_caam_enqueue(struct device *dev, struct caam_request *req) err_out: dma_unmap_single(dev, req->fd_flt_dma, sizeof(req->fd_flt), - DMA_TO_DEVICE); + DMA_BIDIRECTIONAL); return -EIO; } EXPORT_SYMBOL(dpaa2_caam_enqueue); |