crypto: inside-secure - reset CDR and RDR rings on module removal
authorOfer Heifetz <oferh@marvell.com>
Thu, 28 Jun 2018 15:15:41 +0000 (17:15 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 8 Jul 2018 16:30:15 +0000 (00:30 +0800)
commitf1edf29a770ce97cd6b7e028a4999d24bb5ae492
tree484e9ccf9f20586cf0d8ed1147c9701ef62e7bc3
parentfbd0a7c920686721cbc6671cc7dd6c31d5ac6430
crypto: inside-secure - reset CDR and RDR rings on module removal

This patch adds extra steps in the module removal path, to reset the
command and result rings. The corresponding interrupts are cleared, and
the ring address configuration is reset.

Signed-off-by: Ofer Heifetz <oferh@marvell.com>
[Antoine: small reworks, commit message]
Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/inside-secure/safexcel.c