]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: atmel-aes - Allocate aes dev at tfm init time
authorTudor Ambarus <tudor.ambarus@microchip.com>
Tue, 20 Jul 2021 08:55:35 +0000 (11:55 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 30 Jul 2021 02:58:35 +0000 (10:58 +0800)
commit196727962b9f1ca02d948f606886b011c4e0427d
tree9f4dfea7adb79fd814b9c069ad6baaa46c27e4fd
parentea7afc155e63928d7b33d758fcf6701265fac641
crypto: atmel-aes - Allocate aes dev at tfm init time

Allocate the atmel_aes_dev data at tfm init time, and not for
each crypt request.
There's a single AES IP per SoC, clarify that in the code.

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/atmel-aes.c