]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: caam - use mapped_{src,dst}_nents for descriptor
authorIuliana Prodan <iuliana.prodan@nxp.com>
Thu, 26 Sep 2019 12:26:29 +0000 (15:26 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 4 Oct 2019 15:06:21 +0000 (01:06 +1000)
commit637b1437a7b96242e596415785851ff00736cfcc
treeb4a5a40c36e5d294751ce7b5ceace6da903744c4
parent0a5fa5496ca2bfd0f94d851b36cebcf7ca9835e4
crypto: caam - use mapped_{src,dst}_nents for descriptor

The mapped_{src,dst}_nents _returned_ from the dma_map_sg
call (which could be less than src/dst_nents) have to be
used to generate the job descriptors.

Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
Reviewed-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/caampkc.c
drivers/crypto/caam/caampkc.h