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:Franck LENORMAND <franck.lenormand@nxp.com> Reviewed-by:
Horia Geanta <horia.geanta@nxp.com>
Loading
Please register or sign in to comment