]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: omap-aes - fix context handling for multiple cores
authorTero Kristo <t-kristo@ti.com>
Wed, 24 May 2017 07:35:23 +0000 (10:35 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 10 Jun 2017 04:04:13 +0000 (12:04 +0800)
commit638c15d68199d7121f5f87a0d98306ed76ce0334
treee6049068815cb1fa4aa6421cc8a811b8ea493481
parenta1b662924a722458e4c6b153fcff661c9b34cfec
crypto: omap-aes - fix context handling for multiple cores

AES can have multiple HW accelerator cores in the system, in which case
each core has its own crypto engine in use. Currently, the used hardware
device is stored under the omap_aes_ctx struct, which is global for
the algorithm itself, causing conflicts when used with multiple cores.
Fix this by moving the used HW device under reqctx, which is stored
per-request basis.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/omap-aes.c