]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Oct 2020 09:07:23 +0000 (10:07 +0100)
commit19b283f0b3d4924cf5f353835e826c54b7582974
tree20fd1f21a328b0bc7686b366b07b74fe8d8a4bb7
parent9748e867ac817de34c62e37a0d47de86ffac5656
crypto: sun8i-ce - handle endianness of t_common_ctl

[ Upstream commit 87f34260f5e09a4578132ad1c05aef2d707dd4bf ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c