[PATCH v4 2/2] crypto: hw_random - Add new Exynos RNG driver

2017-04-08 Thread Krzysztof Kozlowski
Replace existing hw_ranndom/exynos-rng driver with a new, reworked one. This is a driver for pseudo random number generator block which on Exynos4 chipsets must be seeded with some value. On newer Exynos5420 chipsets it might seed itself from true random number generator block but this is not

[PATCH v4 0/2] crypto: hw_random - Add new Exynos RNG driver

2017-04-08 Thread Krzysztof Kozlowski
Hi, This is a follow up of my questions around exynos-rng [1]. Changes since v3: = 1. New patch: 1/2 for ALIGN_DOWN macro. The change in metag architecture was not compiled. Please test it. 2. Dropped patches touching ARM defconfig as they are not changing and they pollute

[PATCH v4 1/2] linux/kernel.h: Add ALIGN_DOWN macro

2017-04-08 Thread Krzysztof Kozlowski
Few parts of kernel define their own macro for aligning down so provide a common define for this, with the same usage and assumptions as existing ALIGN. Convert also three existing implementations to this one. Signed-off-by: Krzysztof Kozlowski --- The metag change was not