Skip to content
Snippets Groups Projects
Commit ced8b560 authored by Franck LENORMAND's avatar Franck LENORMAND Committed by Leonard Crestez
Browse files

MLK-20639: drivers: crypto: caam: pkc: RSA test fails as struct uses wrong type


When creating the job descriptor, it uses the size of the structure which
is composed of dma_addr_t. On IMX8, this structrue is 64bit like the DMA
however the CAAM only receives 32 bit addresses. It result in a job
descriptor and more precisely the start index to point to invalid
location when it should point to the "command operation".

This patch changes the dma_addr_t to caam_dma_addr_t which is the correct
one for the rsa_priv_f2_pdb and rsa_priv_f3_pdb types as rsa_pub_pdb and
rsa_priv_f1_pdb already had this change.

Signed-off-by: default avatarFranck LENORMAND <franck.lenormand@nxp.com>
Reviewed-by: default avatarHoria Geanta <horia.geanta@nxp.com>
parent caaf5f72
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment