crypto: omap-sham - add proper load balancing support for multicore
authorTero Kristo <t-kristo@ti.com>
Wed, 27 May 2020 12:24:29 +0000 (15:24 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jun 2020 15:49:03 +0000 (17:49 +0200)
commit34bd56feb39d8b66134390b46b8262ca10de4f40
treeb15795009e9de0544121e3ad21d41414d9fda3b6
parent255bc2b4994e20772dce0069ae049d5a0424d5e0
crypto: omap-sham - add proper load balancing support for multicore

[ Upstream commit 281c377872ff5d15d80df25fc4df02d2676c7cde ]

The current implementation of the multiple accelerator core support for
OMAP SHA does not work properly. It always picks up the first probed
accelerator core if this is available, and rest of the book keeping also
gets confused if there are two cores available. Add proper load
balancing support for SHA, and also fix any bugs related to the
multicore support while doing it.

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