Re: [PATCH v2] crypto: sa2ul: Fix DMA mapping API usage

2020-10-02 Thread Herbert Xu
On Wed, Sep 23, 2020 at 01:11:44PM +0300, Peter Ujfalusi wrote: > Make sure that we call the dma_unmap_sg on the correct scatterlist on > completion with the correct sg_nents. > > Use sg_table to managed the DMA mapping and at the same time add the needed > dma_sync calls for the sg_table. > >

[PATCH v2] crypto: sa2ul: Fix DMA mapping API usage

2020-09-23 Thread Peter Ujfalusi
Make sure that we call the dma_unmap_sg on the correct scatterlist on completion with the correct sg_nents. Use sg_table to managed the DMA mapping and at the same time add the needed dma_sync calls for the sg_table. Signed-off-by: Peter Ujfalusi --- Hi, Changes since v1: - use sg_table to