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

Linus Walleij linus.walleij at linaro.org
Wed Oct 14 00:39:03 PDT 2015


On Mon, Oct 12, 2015 at 10:21 AM, Daniel Thompson
<daniel.thompson at linaro.org> wrote:

> 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.thompson at linaro.org>

This is a fine driver, love the performance boost you reported
and stand corrected on the likeness of the other Nomadik driver.
Reviewed-by: Linus Walleij <linus.walleij at linaro.org>

> +static int stm32_rng_read(struct hwrng *rng, void *data, size_t max, bool wait)

Now this read() function is so nice that I feel obliged to
go in and tidy up the Nomadik driver to be as nice.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list