]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit053cc9739bc188d7aba5397df6214b1c142d4f88
tree10daa601278d72a11919ed494a9c7aa59cf8cdcf
parentfff0eb4742a1ad759c6ec35bfd1f9a0aa7f4dd5a
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: c19ffe02ffd9 ("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