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 diff --git a/drivers/crypto/sahara.c

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 diff

[PATCH] crypto/rng: ensure that the RNG is ready before using

2017-07-16 Thread Jason A. Donenfeld
Otherwise, we might be seeding the RNG using bad randomness, which is dangerous. The one use of this function from within the kernel -- not from userspace -- is being removed (keys/big_key), so that call site isn't relevant in assessing this. Cc: Herbert Xu Signed-off-by: Jason A. Donenfeld ---

Re: [PATCH 00/10] Fix alignment issues in staging/ccree

2017-07-16 Thread Greg KH
On Sun, Jul 16, 2017 at 12:33:16PM +0200, Simon Sandström wrote: > Hi > > On Tue, Jul 11, 2017 at 07:00:33PM +0200, Greg KH wrote: > > Not all of these applied, some did, if you could rebase the remaining > > against my staging-testing branch at the moment, and resend, that would > > be great. >

Re: [PATCH 00/10] Fix alignment issues in staging/ccree

2017-07-16 Thread Simon Sandström
Hi On Tue, Jul 11, 2017 at 07:00:33PM +0200, Greg KH wrote: > Not all of these applied, some did, if you could rebase the remaining > against my staging-testing branch at the moment, and resend, that would > be great. I'm not sure about the preferred procedure. Is it OK to send the rebased patche