crypto: sun8i-ce - enable working on big endian
authorCorentin Labbe <clabbe.montjoie@gmail.com>
Sun, 17 Nov 2019 16:07:45 +0000 (17:07 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Nov 2019 10:48:38 +0000 (18:48 +0800)
commit93c7f4d357de68f1e3a998b2fc775466d75c4c07
tree10daa601278d72a11919ed494a9c7aa59cf8cdcf
parent660eda8d50f866e8fc38f3edcd4192c2626b44ea
crypto: sun8i-ce - enable working on big endian

On big endian kernel, the sun8i-ce crypto driver does not works.
This patch do the necessary modification to permit it to work on BE
kernel (setting descriptor entries as __le32 and adding some cpu_to_le32)

Fixes: 06f751b61329 ("crypto: allwinner - Add sun8i-ce Crypto Engine")
Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/allwinner/sun8i-ce/sun8i-ce-cipher.c
drivers/crypto/allwinner/sun8i-ce/sun8i-ce.h