[PATCH] hw_random: Improve description of the ->read() interface

2016-08-18 Thread Daniel Thompson
ded to be the weakest guarantee neccessary to allow driver writers to safely simplify their code. Signed-off-by: Daniel Thompson <daniel.thomp...@linaro.org> --- include/linux/hw_random.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/linux/hw_random.h b/incl

Re: [PATCH] Add Ingenic JZ4780 hardware RNG driver

2016-08-18 Thread Daniel Thompson
On 18/08/16 12:53, LABBE Corentin wrote: On Thu, Aug 18, 2016 at 10:44:18AM +0530, PrasannaKumar Muralidharan wrote: +static int jz4780_rng_read(struct hwrng *rng, void *buf, size_t max, bool wait) +{ + struct jz4780_rng *jz4780_rng = container_of(rng, struct jz4780_rng, +

Re: [PATCH] Add Ingenic JZ4780 hardware RNG driver

2016-08-17 Thread Daniel Thompson
On 17/08/16 16:35, PrasannaKumar Muralidharan wrote: This patch adds support for hardware random number generator present in JZ4780 SoC. Signed-off-by: PrasannaKumar Muralidharan --- .../devicetree/bindings/rng/ingenic,jz4780-rng.txt | 12 +++ MAINTAINERS

Re: [PATCH] hwrng: stm32: fix maybe uninitialized variable warning

2016-05-27 Thread Daniel Thompson
-by: Sudip Mukherjee <sudip.mukher...@codethink.co.uk> Suggested-by: Arnd Bergmann <a...@arndb.de> Cc: Daniel Thompson <daniel.thomp...@linaro.org> Reviewed-by: Daniel Thompson <daniel.thomp...@linaro.org> Signed-off-by: Maxime Coquelin <mcoquelin.st...@gmail.com&g

Re: [PATCH] hwrng: stm32 - fix build warning

2016-05-24 Thread Daniel Thompson
On 24/05/16 09:50, Maxime Coquelin wrote: diff --git a/drivers/char/hw_random/stm32-rng.c b/drivers/char/hw_random/stm32-rng.c index 92a810648bd0..2a0fc90e4dc3 100644 --- a/drivers/char/hw_random/stm32-rng.c +++ b/drivers/char/hw_random/stm32-rng.c @@ -68,6 +68,10 @@ static int

Re: [PATCH v2 2/2] rng: pic32-rng: Add PIC32 RNG hardware driver

2016-02-08 Thread Daniel Thompson
rna.man...@microchip.com> Reviewed-by: Daniel Thompson <daniel.thomp...@linaro.org> > --- > Changes since v1: > - Reorder includes to be alphabetic. > - Drop use of PRNG and only use TRNG. Excellent! > - Fix dangling clock ref in error condition. >

Re: [PATCH 2/2] rng: pic32-rng: Add PIC32 RNG hardware driver

2016-02-03 Thread Daniel Thompson
On 01/02/16 22:41, Joshua Henderson wrote: Add support for the hardware pseudo and true random number generator peripheral found on PIC32. Signed-off-by: Joshua Henderson Signed-off-by: Purna Chandra Mandal ---

Re: [PATCH 05/22] hw_random: Fix dependencies for !HAS_IOMEM archs

2016-01-26 Thread Daniel Thompson
On 25/01/16 22:24, Richard Weinberger wrote: Not every arch has io memory. So, unbreak the build by fixing the dependencies. Signed-off-by: Richard Weinberger <rich...@nod.at> Reviewed-by: Daniel Thompson <daniel.thomp...@linaro.org> Thanks for cleaning up after me! ---

[PATCH v3 2/3] hwrng: stm32 - add support for STM32 HW RNG

2015-10-14 Thread Daniel Thompson
Add support for STMicroelectronics STM32 random number generator. The config value defaults to N, reflecting the fact that STM32 is a very low resource microcontroller platform and unlikely to be targeted by any "grown up" defconfigs. Signed-off-by: Daniel Thompson <daniel.thomp.

[PATCH v3 0/3] hwrng: stm32 - add support for STM32 HW RNG

2015-10-14 Thread Daniel Thompson
(Linus Walleij, Maxime Coquelin). * Only WARN_ONCE() when hardware failure mechanisms trigger (Maxime Coquelin). * Simplify end of probe function after cocci warning (Fengguang Wu). * Switch to devm_hwrng_register. Daniel Thompson (3): dt-bindings: Document the STM32 HW RNG bindings

[PATCH v3 1/3] dt-bindings: Document the STM32 HW RNG bindings

2015-10-14 Thread Daniel Thompson
This adds documentation of device tree bindings for the STM32 hardware random number generator. Signed-off-by: Daniel Thompson <daniel.thomp...@linaro.org> Acked-by: Maxime Coquelin <mcoquelin.st...@gmail.com> Acked-by: Rob Herring <r...@kernel.org> --- .../devicetree/bin

[PATCH v3 3/3] ARM: dts: stm32f429: Adopt STM32 RNG driver

2015-10-14 Thread Daniel Thompson
New bindings and driver have been created for STM32 series parts. This patch integrates this changes. Signed-off-by: Daniel Thompson <daniel.thomp...@linaro.org> Acked-by: Maxime Coquelin <mcoquelin.st...@gmail.com> --- arch/arm/boot/dts/stm32f429.dtsi | 7 +++ 1 file changed,

[PATCH] hwrng: stm32 - Fix build with CONFIG_PM

2015-10-14 Thread Daniel Thompson
Commit c6a97c42e399 ("hwrng: stm32 - add support for STM32 HW RNG") was inadequately tested (actually it was tested quite hard so incompetent would be a better description that inadequate) and does not compile on platforms with CONFIG_PM set. Fix this. Signed-off-by: Danie

[PATCH 2/3] hwrng: stm32 - add support for STM32 HW RNG

2015-10-12 Thread Daniel Thompson
Add support for STMicroelectronics STM32 random number generator. The config value defaults to N, reflecting the fact that STM32 is a very low resource microcontroller platform and unlikely to be targeted by any "grown up" defconfigs. Signed-off-by: Daniel Thompson <daniel.thomp.

[PATCH 3/3] ARM: dts: stm32f429: Adopt STM32 RNG driver

2015-10-12 Thread Daniel Thompson
New bindings and driver have been created for STM32 series parts. This patch integrates this changes. Signed-off-by: Daniel Thompson <daniel.thomp...@linaro.org> Acked-by: Maxime Coquelin <mcoquelin.st...@gmail.com> --- arch/arm/boot/dts/stm32f429.dtsi | 7 +++ 1 file changed,

[PATCH 0/3] hwrng: stm32 - add support for STM32 HW RNG

2015-10-12 Thread Daniel Thompson
to devm_hwrng_register. Daniel Thompson (3): dt-bindings: Document the STM32 HW RNG bindings hwrng: stm32 - add support for STM32 HW RNG ARM: dts: stm32f429: Adopt STM32 RNG driver .../devicetree/bindings/rng/st,stm32-rng.txt | 21 +++ arch/arm/boot/dts/stm32f429.dtsi

[PATCH 1/3] dt-bindings: Document the STM32 HW RNG bindings

2015-10-12 Thread Daniel Thompson
This adds documentation of device tree bindings for the STM32 hardware random number generator. Signed-off-by: Daniel Thompson <daniel.thomp...@linaro.org> Acked-by: Maxime Coquelin <mcoquelin.st...@gmail.com> Acked-by: Rob Herring <r...@kernel.org> --- .../devicetree/bin

Re: [PATCH 2/3] hwrng: stm32 - add support for STM32 HW RNG

2015-10-11 Thread Daniel Thompson
On 5 October 2015 at 10:22, Daniel Thompson <daniel.thomp...@linaro.org> wrote: > On 4 October 2015 at 11:32, Linus Walleij <linus.wall...@linaro.org> wrote: >> On Sat, Oct 3, 2015 at 10:35 PM, Daniel Thompson >> 3. I took out the datasheet for Nomadik STn8820 and it

Re: [PATCH 2/3] hwrng: stm32 - add support for STM32 HW RNG

2015-10-11 Thread Daniel Thompson
On 5 October 2015 at 10:22, Daniel Thompson <daniel.thomp...@linaro.org> wrote: > On 4 October 2015 at 11:32, Linus Walleij <linus.wall...@linaro.org> wrote: >> On Sat, Oct 3, 2015 at 10:35 PM, Daniel Thompson >> <daniel.thomp...@linaro.org> wrote: >>

Re: [PATCH 2/3] hwrng: stm32 - add support for STM32 HW RNG

2015-10-05 Thread Daniel Thompson
On 4 October 2015 at 11:32, Linus Walleij <linus.wall...@linaro.org> wrote: > On Sat, Oct 3, 2015 at 10:35 PM, Daniel Thompson > <daniel.thomp...@linaro.org> wrote: > >> Add support for STMicroelectronics STM32 random number generator. >> >> The config v

Re: [PATCH 2/3] hwrng: stm32 - add support for STM32 HW RNG

2015-10-05 Thread Daniel Thompson
On 4 October 2015 at 09:52, Maxime Coquelin <mcoquelin.st...@gmail.com> wrote: > Hi Daniel, > > On 10/03/2015 10:35 PM, Daniel Thompson wrote: >> >> Add support for STMicroelectronics STM32 random number generator. >> >> The config value defaults to N, refl

Re: [PATCH v2 5/7] hwrng: st: Add support for ST's HW Random Number Generator

2015-10-05 Thread Daniel Thompson
Hi Lee Late but... On 17/09/15 14:45, Lee Jones wrote: diff --git a/drivers/char/hw_random/Makefile b/drivers/char/hw_random/Makefile index 055bb01..8bcfb45 100644 --- a/drivers/char/hw_random/Makefile +++ b/drivers/char/hw_random/Makefile @@ -30,4 +30,5 @@ obj-$(CONFIG_HW_RANDOM_TPM) +=

[PATCH 2/3] hwrng: stm32 - add support for STM32 HW RNG

2015-10-03 Thread Daniel Thompson
Add support for STMicroelectronics STM32 random number generator. The config value defaults to N, reflecting the fact that STM32 is a very low resource microcontroller platform and unlikely to be targeted by any "grown up" defconfigs. Signed-off-by: Daniel Thompson <daniel.thomp.

[PATCH 3/3] ARM: dts: stm32f429: Adopt STM32 RNG driver

2015-10-03 Thread Daniel Thompson
New bindings and driver have been created for STM32 series parts. This patch integrates this changes. Signed-off-by: Daniel Thompson <daniel.thomp...@linaro.org> --- arch/arm/boot/dts/stm32f429.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429.

[PATCH 1/3] dt-bindings: Document the STM32 HW RNG bindings

2015-10-03 Thread Daniel Thompson
This adds documenttaion of device tree binds for the STM32 hardware random number generator. Signed-off-by: Daniel Thompson <daniel.thomp...@linaro.org> --- .../devicetree/bindings/hwrng/stm32-rng.txt | 21 + 1 file changed, 21 insertions(+) create mode

[PATCH 0/3] hwrng: stm32 - add support for STM32 HW RNG

2015-10-03 Thread Daniel Thompson
This patchset introduces a driver for the STM32 hardware random number generator. Daniel Thompson (3): dt-bindings: Document the STM32 HW RNG bindings hwrng: stm32 - add support for STM32 HW RNG ARM: dts: stm32f429: Adopt STM32 RNG driver .../devicetree/bindings/hwrng/stm32-rng.txt