Tudor Ambarus 0e69378940 crypto: atmel-{aes,sha} - Fix incorrect use of dmaengine_terminate_all()
device_terminate_all() is used to abort all the pending and
ongoing transfers on the channel, it should be used just in the
error path.

Also, dmaengine_terminate_all() is deprecated and one should use
dmaengine_terminate_async() or dmaengine_terminate_sync(). The method
is not used in atomic context, use dmaengine_terminate_sync().

A secondary aspect of this patch is that it luckily avoids a deadlock
between atmel_aes and at_hdmac.c. While in tasklet with the lock held,
the dma controller invokes the client callback (dmaengine_terminate_all),
which tries to get the same lock. The at_hdmac fix would be to drop the
lock before invoking the client callback, a fix on at_hdmac will follow.

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2019-12-20 14:58:34 +08:00
..
2019-12-04 10:56:35 -08:00
2019-12-03 13:58:22 -08:00
2019-12-05 11:43:31 -08:00
2019-12-07 14:49:20 -08:00
2019-12-05 11:38:40 -08:00
2019-12-01 18:43:25 -08:00
2019-11-22 11:16:26 +05:30
2019-12-06 14:19:37 -08:00
2019-12-06 10:28:09 -08:00
2019-12-03 14:37:12 -08:00
2019-12-03 13:58:22 -08:00
2019-12-03 13:58:22 -08:00
2019-11-30 14:35:43 -08:00
2019-12-01 18:42:02 -08:00
2019-12-06 08:28:51 -08:00
2019-12-03 13:58:22 -08:00
2019-12-03 14:37:12 -08:00
2019-11-27 11:06:20 -08:00
2019-12-03 14:09:14 -08:00
2019-12-01 18:43:25 -08:00
2019-12-03 13:58:22 -08:00
2019-12-05 11:43:31 -08:00
2019-12-02 11:41:35 -08:00
2019-11-25 19:40:40 -08:00
2019-12-03 13:58:22 -08:00
2019-12-05 11:43:31 -08:00
2019-12-03 14:37:12 -08:00
2019-12-05 11:28:14 -08:00
2019-12-05 11:43:31 -08:00
2019-12-01 18:39:24 -08:00
2019-12-03 13:31:08 -08:00
2019-12-08 12:23:42 -08:00
2019-12-06 14:19:37 -08:00
2019-11-22 19:56:35 +00:00
2019-12-03 13:58:22 -08:00
2019-12-02 13:37:02 -08:00
2019-12-05 13:18:54 -08:00
2019-12-03 14:09:14 -08:00
2019-12-07 14:51:04 -08:00
2019-12-03 13:58:22 -08:00
2019-11-20 02:15:57 -05:00
2019-11-14 13:06:33 +08:00
2019-12-01 18:01:03 -08:00
2019-12-07 14:49:20 -08:00