[PATCH] crypto: sahara - Fix dma unmap direction

2017-08-03 Thread Mogens Lauridsen
The direction used in dma_unmap_sg in aes calc is wrong. This result in the cache not being invalidated correct when aes calculation is done and result has been dma'ed to memory. This is seen as sporadic wrong result from aes calc. Signed-off-by: Mogens Lauridsen <mlauridsen...@gmail.

[PATCH] crypto: sahara - Remove leftover from previous used spinlock

2017-08-03 Thread Mogens Lauridsen
This driver previously used a spinlock. The spinlock is not used any more, but the spinlock variable was still there and also being initialized. Signed-off-by: Mogens Lauridsen <mlauridsen...@gmail.com> --- drivers/crypto/sahara.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/d

Patch: Remove leftover from spinlock previous used in sahara driver

2017-07-16 Thread Mogens Lauridsen
Hi, The Freescale sahara driver has previously used a spinlock. This spinlock has been removed, but the spinlock variable is still there and is also being initialized. This patch removes the leftover. Thanks, Mogens Lauridsen Signed-off-by: Mogens Lauridsen <mlauridsen...@gmail.com> diff

Fix dma unmap direction in iMX sahara aes calculation

2017-07-16 Thread Mogens Lauridsen
Hi, The direction used in dma_unmap_sg in aes calc in sahara.c is wrong. This result in the cache not being invalidated correct when aes calculation is done and result is dma'ed to memory. This is seen as sporadic wrong result from aes calc. Thanks, Mogens Signed-off-by: Mogens Lauridsen