Re: [PATCH v2] crypto: caam - use mapped_{src,dst}_nents for descriptor

From: Herbert Xu
Date: Fri Oct 04 2019 - 11:45:59 EST


On Thu, Sep 26, 2019 at 03:26:29PM +0300, Iuliana Prodan wrote:
> 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@xxxxxxx>
> ---
> Changes since v1:
> - updated, with mapped_{src,dst}_nents, the set_rsa_pub_pdb, set_rsa_priv_f{1,2,3}_pdb functions.
> ---
> drivers/crypto/caam/caampkc.c | 72 +++++++++++++++++++++++--------------------
> drivers/crypto/caam/caampkc.h | 8 +++--
> 2 files changed, 45 insertions(+), 35 deletions(-)

Patch applied. Thanks.
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt