]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb40f607c1defd540564905c337891e82b5dc7f5f
tree4edd2582dffa0534cc82913c513163e1bc8982ae
parentf52e7e503a93e66f84b692b60af322293475b766
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