crypto: caam - fix input job ring element dma mapping size
authorKim Phillips <kim.phillips@freescale.com>
Sat, 23 Jun 2012 00:42:36 +0000 (19:42 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 27 Jun 2012 06:42:03 +0000 (14:42 +0800)
commita68d2595876c7cc56f122572fa0a3465d438fefc
tree1d29d908b19702edec03b5d50c6519fd2d6ebbcb
parent70d793cc30a129d974363b4f3c22c9db6bbb18ed
crypto: caam - fix input job ring element dma mapping size

SEC4 h/w gets configured in 32- vs. 36-bit physical
addressing modes depending on the size of dma_addr_t,
which is not always equal to sizeof(u32 *).

Also fixed alignment of a dma_unmap call whilst in there.

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/jr.c