OSDN Git Service

crypto: caam - fix rfc4543 descriptors
authorHoria Geantă <horia.geanta@nxp.com>
Wed, 23 May 2018 11:32:41 +0000 (14:32 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 30 May 2018 16:13:46 +0000 (00:13 +0800)
commitb2106476a8cf18318a9677ad669e63502900d907
tree4edd2582dffa0534cc82913c513163e1bc8982ae
parent06d44c918a689e41215f763285061b3a99c56b6c
crypto: caam - fix rfc4543 descriptors

In some cases the CCB DMA-based internal transfer started by the MOVE
command (src=M3 register, dst=descriptor buffer) does not finish
in time and DECO executes the unpatched descriptor.
This leads eventually to a DECO Watchdog Timer timeout error.

To make sure the transfer ends, change the MOVE command to be blocking.

Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/caamalg_desc.c