crypto: amlogic - enable working on big endian kernel
authorCorentin Labbe <clabbe@baylibre.com>
Sun, 17 Nov 2019 16:09:53 +0000 (16:09 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Nov 2019 10:48:39 +0000 (18:48 +0800)
commit3d04158814e7a808c38124c87502b430b916dfcb
tree2325ae2f55419dacb47d6f2526386c5014fc84a5
parent93c7f4d357de68f1e3a998b2fc775466d75c4c07
crypto: amlogic - enable working on big endian kernel

On big endian kernel, the GXL crypto driver does not works.
This patch do the necessary modification to permit it to work on BE
kernel (removing bitfield and adds some cpu_to_le32).

Fixes: 48fe583fe541 ("crypto: amlogic - Add crypto accelerator for amlogic GXL")
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/amlogic/amlogic-gxl-cipher.c
drivers/crypto/amlogic/amlogic-gxl.h