crypto: caam - fix RNG state handle instantiation descriptor
authorAlex Porosanu <alexandru.porosanu@freescale.com>
Mon, 9 Sep 2013 15:56:28 +0000 (18:56 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 13 Sep 2013 11:43:53 +0000 (21:43 +1000)
commitd5e4e999cda51eaa62e662088579fcce0ac79e92
tree0d1d4289a598444ec542797a19a5d214d245652a
parentf5b38c5f19b1dafb413c6581cd4a0d84d3b6512f
crypto: caam - fix RNG state handle instantiation descriptor

The way the DECO runs a descriptor through the direct (debug)
interface is different from the JRI interface: the DECO will
continue to try and execute the next commands, after the descriptor
buffer has ended. This leads to unpredictable results and possibly
to locking up of the DECO. This patch adds a halt command at the
end of the descriptor to ensure the DECO halts when it reaches
the end of the descriptor buffer.

Signed-off-by: Alex Porosanu <alexandru.porosanu@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/ctrl.c
This page took 0.02606 seconds and 5 git commands to generate.