Skip to content

Commit 67d8208

Browse files
Christoph Hellwigmpe
authored andcommitted
crypto4xx_core: don't abuse __dma_sync_page
This function is internal to the DMA API implementation. Instead use the DMA API to properly unmap. Note that the DMA API usage in this driver is a disaster and urgently needs some work - it is missing all the unmaps, seems to do a secondary map where it looks like it should to a unmap in one place to work around cache coherency and the directions passed in seem to be partially wrong. Signed-off-by: Christoph Hellwig <hch@lst.de> Tested-by: Christian Lamparter <chunkeey@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
1 parent 0aeba2d commit 67d8208

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/crypto/amcc/crypto4xx_core.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ static void crypto4xx_aead_done(struct crypto4xx_device *dev,
596596
pd->pd_ctl_len.bf.pkt_len,
597597
dst);
598598
} else {
599-
__dma_sync_page(sg_page(dst), dst->offset, dst->length,
599+
dma_unmap_page(dev->core_dev->device, pd->dest, dst->length,
600600
DMA_FROM_DEVICE);
601601
}
602602

0 commit comments

Comments
 (0)