MLK-16950 crypto: caam: Fix failed to flush job ring 0
authorAymen Sghaier <aymen.sghaier@nxp.com>
Mon, 27 Nov 2017 16:01:53 +0000 (17:01 +0100)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:49:05 +0000 (14:49 -0500)
commit4abdbe0cf766d49f1a26ae26297a7fa6c8170633
treee31d51117d9f8a74c3a74626d5c5a306e4a9eb45
parentf835529a50764a11cd64f0bca341e15e75500edf
MLK-16950 crypto: caam: Fix failed to flush job ring 0

  This error occurred on MX8M-EVK while initializing the first job ring.
 If the job ring was used before Kernel level, then connecting it to the
 irq handler could generate error due to its (unknown) previous state.
  This patch calls the hardware reset function before connecting the irq
 handler.

Signed-off-by: Aymen Sghaier <aymen.sghaier@nxp.com>
drivers/crypto/caam/jr.c