crypto: brcm - Support more FlexRM rings than SPU engines.
authorraveendra padasalagi <raveendra.padasalagi@broadcom.com>
Fri, 21 Jul 2017 05:47:39 +0000 (11:17 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 3 Aug 2017 05:52:43 +0000 (13:52 +0800)
commit9166c44358346c0a92b11fd4e24925efff791648
treeb11c3196a20500547a4f0ac05e56064fdd540273
parent6d2bce6a15753710836f99054826d5ae638dd04a
crypto: brcm - Support more FlexRM rings than SPU engines.

Enhance code to generically support cases where DMA rings
are greater than or equal to number of SPU engines.
New hardware has underlying DMA engine-FlexRM with 32 rings
which can be used to communicate to any of the available
10 SPU engines.

Signed-off-by: Raveendra Padasalagi <raveendra.padasalagi@broadcom.com>
Reviewed-by: Scott Branden <scott.branden@broadcom.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/bcm/cipher.c
drivers/crypto/bcm/cipher.h