]> git.karo-electronics.de Git - karo-tx-linux.git/commit
crypto: caam - treat SGT address pointer as u64
authorTudor Ambarus <tudor-dan.ambarus@nxp.com>
Fri, 30 Sep 2016 09:09:39 +0000 (12:09 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 2 Oct 2016 14:33:45 +0000 (22:33 +0800)
commitf97581cfa6e7db9818520597b8a44f8268d75013
tree3142b5190712e36c9c3d143086de0a1151c6f27a
parent81422badb39078fde1ffcecda3caac555226fc7b
crypto: caam - treat SGT address pointer as u64

Even for i.MX, CAAM is able to use address pointers greater than
32 bits, the address pointer field being interpreted as a double word.
Enforce u64 address pointer in the sec4_sg_entry struct.

This patch fixes the SGT address pointer endianness issue for
32bit platforms where core endianness != caam endianness.

Signed-off-by: Tudor Ambarus <tudor-dan.ambarus@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/desc.h
drivers/crypto/caam/regs.h
drivers/crypto/caam/sg_sw_sec4.h