OSDN Git Service

crypto: sun8i-ce - handle endianness of t_common_ctl
authorCorentin Labbe <clabbe@baylibre.com>
Fri, 18 Sep 2020 07:23:05 +0000 (07:23 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 25 Sep 2020 07:48:17 +0000 (17:48 +1000)
commit87f34260f5e09a4578132ad1c05aef2d707dd4bf
treeedacb867a4aa69bd5d3208233765bb47daa0ff98
parent68cbba1639373608194b825add1c796902adc43a
crypto: sun8i-ce - handle endianness of t_common_ctl

t_common_ctl is LE32 so we need to convert its value before using it.
This value is only used on H6 (ignored on other SoCs) and not handling
the endianness cause failure on xRNG/hashes operations on H6 when running BE.

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