crypto: sa2ul - Fix DMA mapping API usage
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Wed, 23 Sep 2020 10:11:44 +0000 (13:11 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 2 Oct 2020 08:02:13 +0000 (18:02 +1000)
commit00c9211f60db2dead16856f81a3e6ab86b31f275
tree8e96e66d2e721c529798b41d51b601eb1be468af
parent4fc983266d1eef951a7f44cb70288e331356dca0
crypto: sa2ul - Fix DMA mapping API usage

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 <peter.ujfalusi@ti.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/sa2ul.c