Re: [PATCH] char: hw_random: bcm2835: handle of_iomap failures in bcm2835 driver

2016-08-30 Thread Eric Anholt
Arvind Yadav writes: > Check return value of of_iomap and handle errors correctly. > > Signed-off-by: Arvind Yadav Acked-by: Eric Anholt signature.asc Description: PGP signature

[PATCH] crypto: qat - fix incorrect accelerator mask for C3X devices

2016-08-30 Thread Giovanni Cabiddu
From: Maksim Lukoshkov Fix incorrect value of ADF_C3XXX_ACCELERATORS_MASK. Signed-off-by: Maksim Lukoshkov Signed-off-by: Giovanni Cabiddu --- drivers/crypto/qat/qat_c3xxx/adf_c3xxx_hw_data.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/crypto/qat/qat_c3xx

Re: [PATCH 4/4] crypto: qce: If total text size is zero, return pre-computed digest

2016-08-30 Thread Corentin LABBE
On 30/08/2016 17:53, Iaroslav Gridin wrote: > From: Voker57 > > If total data amount to hash is zero, we cannot submit it to QCE, > since it locks up on zero-sized updates. So, return pre-computed > SHA256/SHA1 hash. > Signed-off-by: Iaroslav Gridin > --- > drivers/crypto/qce/sha.c | 27 +++

[PATCH 1/4] crypto: qce: Remove unneeded length check for scatterlist

2016-08-30 Thread Iaroslav Gridin
From: Voker57 Current code avoids supplying scatterlist containing more data than used to DMA. This leads to dropping data from scatterlists which would leave some for next run. Signed-off-by: Iaroslav Gridin --- drivers/crypto/qce/sha.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/driv

[PATCH 3/4] crypto: qce: Ensure QCE receives no zero-sized updates

2016-08-30 Thread Iaroslav Gridin
From: Voker57 Zero-sized updates lock QCE, so ensure there's always some data left for the final update, up to blocksize. Signed-off-by: Iaroslav Gridin --- drivers/crypto/qce/sha.c | 30 -- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/drivers/cryp

[PATCH 4/4] crypto: qce: If total text size is zero, return pre-computed digest

2016-08-30 Thread Iaroslav Gridin
From: Voker57 If total data amount to hash is zero, we cannot submit it to QCE, since it locks up on zero-sized updates. So, return pre-computed SHA256/SHA1 hash. Signed-off-by: Iaroslav Gridin --- drivers/crypto/qce/sha.c | 27 --- 1 file changed, 24 insertions(+), 3 de

[PATCH 2/4] crypto: qce: Avoid repeat hash finalization

2016-08-30 Thread Iaroslav Gridin
From: Voker57 Calling QCE finalization when hash have already been finalized causes a lockup. Avoid it by introducing finalized flag. Signed-off-by: Iaroslav Gridin --- drivers/crypto/qce/sha.c | 6 ++ drivers/crypto/qce/sha.h | 1 + 2 files changed, 7 insertions(+) diff --git a/drivers/cr

[no subject]

2016-08-30 Thread Iaroslav Gridin
This set of patches fixes QCE digest code, preventing lockups and incorrect results. -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH] char: hw_random: bcm2835: handle of_iomap failures in bcm2835 driver

2016-08-30 Thread Arvind Yadav
Check return value of of_iomap and handle errors correctly. Signed-off-by: Arvind Yadav --- drivers/char/hw_random/bcm2835-rng.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/char/hw_random/bcm2835-rng.c b/drivers/char/hw_random/bcm2835-rng.c index af21492..57

Re: hwrng: pasemi_rng.c: Migrate to managed API

2016-08-30 Thread PrasannaKumar Muralidharan
Hi Darren, >> I wanted to use devm_ioremap_resource but could not find DT entry >> required for this driver in any of the .dts files. So did not change >> that. I could not find any dts/dtsi for this platform. So I assume >> that the dtb is not present in the kernel, dtb is supplied by the >> boot