Re: Issues with HW RNG / SSS on Exynos 5422

2015-08-16 Thread Heiner Kallweit
Am 15.08.2015 um 13:19 schrieb Heiner Kallweit: I'm having issues making the hardware RNG work on a Samsung Exynos 5422 (Odroid XU4) with kernel 4.2rc6. No random number generation is started if I write the appropriate value (0x18) to the hash control register. What I did so far

Re: Issues with HW RNG / SSS on Exynos 5422

2015-08-18 Thread Heiner Kallweit
Am 17.08.2015 um 08:30 schrieb Krzysztof Kozlowski: On 17.08.2015 15:10, Heiner Kallweit wrote: Am 17.08.2015 um 02:19 schrieb Krzysztof Kozlowski: 2015-08-16 20:18 GMT+09:00 Heiner Kallweit hkallwe...@gmail.com: Am 15.08.2015 um 13:19 schrieb Heiner Kallweit: I'm having issues making

Re: Issues with HW RNG / SSS on Exynos 5422

2015-08-17 Thread Heiner Kallweit
Am 17.08.2015 um 02:19 schrieb Krzysztof Kozlowski: 2015-08-16 20:18 GMT+09:00 Heiner Kallweit hkallwe...@gmail.com: Am 15.08.2015 um 13:19 schrieb Heiner Kallweit: I'm having issues making the hardware RNG work on a Samsung Exynos 5422 (Odroid XU4) with kernel 4.2rc6. No random number

Issues with HW RNG on Exynos 5422

2015-08-15 Thread Heiner Kallweit
I'm having issues making the hardware RNG work on a Samsung Exynos 5422 (Odroid XU4) with kernel 4.2rc6. No random number generation is started if I write the appropriate value (0x18) to the hash control register. What I did so far: Splitted the sss DT node in exynos5420.dtsi into one for the

[PATCH v3 4/4] hwrng: meson: add clock handling to driver

2017-02-21 Thread Heiner Kallweit
Add handling of RNG0 clock to the driver. Signed-off-by: Heiner Kallweit <hkallwe...@gmail.com> --- v2: - consider that clock is optional - use managed call to clk_disable_unprepare to ensure that cleaning up is done in the right order if driver is removed v3: - no changes --- driver

[PATCH v3 2/4] ARM64: dts: meson-gx: add clock to DT binding documentation for hwrng

2017-02-21 Thread Heiner Kallweit
Add clock to DT binding documentation. Signed-off-by: Heiner Kallweit <hkallwe...@gmail.com> --- v2: - splitted first version of patch into two - add DT binding documentation - mention that clock is optional - replace spaces with tabs in DT binding example v3: - splitted DT extension and b

[PATCH v3 1/3] clk: meson-gxbb: expose clock CLKID_RNG0

2017-02-21 Thread Heiner Kallweit
Expose clock CLKID_RNG0 which is needed for the HW random number generator. Signed-off-by: Heiner Kallweit <hkallwe...@gmail.com> --- v2: - added clk and DT maintainers - split exposing the clock and using it in DT into two patches - comment out clock definition in drivers/clk/meson/

[PATCH v3 3/4] ARM64: dts: meson-gx: add clock CLKID_RNG0 to hwrng node

2017-02-21 Thread Heiner Kallweit
Add clock CLKID_RNG0 to HW randon number generator node. Signed-off-by: Heiner Kallweit <hkallwe...@gmail.com> --- v2: - splitted first version of patch into two - add DT binding documentation - mention that clock is optional - replace spaces with tabs in DT binding example v3: - split

[PATCH v2 1/3] clk: meson-gxbb: expose clock CLKID_RNG0

2017-02-21 Thread Heiner Kallweit
Expose clock CLKID_RNG0 which is needed for the HW random number generator. Signed-off-by: Heiner Kallweit <hkallwe...@gmail.com> --- v2: - added clk and DT maintainers - split exposing the clock and using it in DT into two patches - comment out clock definition in drivers/clk/meson/

[PATCH v2 2/3] ARM64: dts: meson-gx: add clock CLKID_RNG0 to hwrng node

2017-02-21 Thread Heiner Kallweit
Add clock CLKID_RNG0 to HW randon number generator node and extend the DT binding documentation accordingly. Signed-off-by: Heiner Kallweit <hkallwe...@gmail.com> --- v2: - splitted first version of patch into two - add DT binding documentation - mention that clock is optional - replace

[PATCH v2 3/3] hwrng: meson: add clock handling to driver

2017-02-21 Thread Heiner Kallweit
Add handling of RNG0 clock to the driver. Signed-off-by: Heiner Kallweit <hkallwe...@gmail.com> --- v2: - consider that clock is optional - use managed call to clk_disable_unprepare to ensure that cleaning up is done in the right order if driver is removed --- drivers/char/hw_random

[PATCH 1/2] hwrng: meson: expose RNG0 clock via DT

2017-02-19 Thread Heiner Kallweit
Expose the RNG0 clock via DT. Signed-off-by: Heiner Kallweit <hkallwe...@gmail.com> --- arch/arm64/boot/dts/amlogic/meson-gx.dtsi | 2 +- arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 5 + include/dt-bindings/clock/gxbb-clkc.h | 1 + 3 files changed, 7 insertions(+), 1 de

[PATCH 2/2] hwrng: meson: add clock handling to driver

2017-02-19 Thread Heiner Kallweit
Add handling of RNG0 clock to the driver. Signed-off-by: Heiner Kallweit <hkallwe...@gmail.com> --- drivers/char/hw_random/meson-rng.c | 27 ++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/drivers/char/hw_random/meson-rng.c b/drivers/char/hw_

[PATCH 0/2] hwrng: meson: add clock handling

2017-02-19 Thread Heiner Kallweit
The HW randon number generator requires a clock and we shouldn't rely on the boot loader to enable it. Heiner Kallweit (2): hwrng: meson: expose RNG0 clock via DT hwrng: meson: add clock handling to driver arch/arm64/boot/dts/amlogic/meson-gx.dtsi | 2 +- arch/arm64/boot/dts/amlogic

Re: [PATCH v2 3/3] hwrng: meson: add clock handling to driver

2017-02-21 Thread Heiner Kallweit
Am 21.02.2017 um 22:21 schrieb Neil Armstrong: > On 02/21/2017 12:26 PM, Heiner Kallweit wrote: >> Add handling of RNG0 clock to the driver. >> >> Signed-off-by: Heiner Kallweit <hkallwe...@gmail.com> >> --- >> v2: >> - consider that clock is optional &