crypto: stm32 - Use accelerated readsl/writesl
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 10 Jan 2023 19:43:07 +0000 (20:43 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 20 Jan 2023 10:29:31 +0000 (18:29 +0800)
commit319ad16d62d3da695faebd2d5def6be0d542f586
treecd6a3cee587ce926490769f1b29083f130e0172a
parentf104b2169e6841b1629ff8cea15b751bc6f9a0e7
crypto: stm32 - Use accelerated readsl/writesl

When reading or writing crypto buffers the inner loops can
be replaced with readsl and writesl which will on ARM result
in a tight assembly loop, speeding up encryption/decryption
a little bit. This optimization was in the Ux500 driver so
let's carry it over to the STM32 driver.

Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com>
Cc: Alexandre Torgue <alexandre.torgue@foss.st.com>
Cc: Lionel Debieve <lionel.debieve@foss.st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/stm32/stm32-cryp.c