]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: talitos - Fix ctr(aes) on SEC1
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Wed, 20 Jan 2021 18:57:25 +0000 (18:57 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 29 Jan 2021 04:57:59 +0000 (15:57 +1100)
commitcf622d65204aac3424405957616e319dd5f5c1ec
treeb6bfc219b13f80732c2c386d45a3720d5b4047b7
parent0a97c84f15f6575751c1c83419bc7c9b3f99d45b
crypto: talitos - Fix ctr(aes) on SEC1

While ctr(aes) requires the use of a special descriptor on SEC2 (see
commit 39b3317dec75 ("crypto: talitos - fix ctr-aes-talitos")), that
special descriptor doesn't work on SEC1, see commit 67ea530285c9
("powerpc/8xx: Add DT node for using the SEC engine of the MPC885").

However, the common nonsnoop descriptor works properly on SEC1 for
ctr(aes).

Add a second template for ctr(aes) that will be registered
only on SEC1.

Fixes: 39b3317dec75 ("crypto: talitos - fix ctr-aes-talitos")
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/talitos.c