drivers: crypto: caam/jr - Allow quiesce when quiesced
authorHoria Geanta <horia.geanta@nxp.com>
Tue, 28 Feb 2023 18:37:58 +0000 (00:07 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 14 Mar 2023 09:06:45 +0000 (17:06 +0800)
commit06e39357c36b0d3cc2779d08ed04cb389eaa22ba
treefdc40dd132875dadc6dc598aea326b10fbce17dc
parentca25c00ccbc5f942c63897ed23584cfc66e8ec81
drivers: crypto: caam/jr - Allow quiesce when quiesced

Issues:
- Job ring device is busy when do kexec reboot
- Failed to flush job ring when do system suspend-resume

Fix:
Flush the job ring to stop the running jobs.

Signed-off-by: Horia Geanta <horia.geanta@nxp.com>
Signed-off-by: Franck LENORMAND <franck.lenormand@nxp.com>
Reviewed-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/jr.c