Questions about the Crypto API

2013-08-05 Thread Marcelo Cerri
Hi, I'm starting to work on some platform-specific implementations using the Crypto API. I spent some time reading the available documentation and mainly the code, but I still have some doubts on how the Crypto API works and how it should be used. My first doubt is regarding which kind of concurr

[PATCH 3/6] hwrng: OMAP: Remove duplicated function call

2013-08-05 Thread Lokesh Vutla
platform_set_drvdata() is called twice in driver probe. Removing the duplicated call. Signed-off-by: Lokesh Vutla --- drivers/char/hw_random/omap-rng.c |1 - 1 file changed, 1 deletion(-) diff --git a/drivers/char/hw_random/omap-rng.c b/drivers/char/hw_random/omap-rng.c index 9c19396..5a2a

[PATCH 0/6] hwrng: OMAP: Updates for OMAP RNG module

2013-08-05 Thread Lokesh Vutla
This patch series adds support for OMAP4 version of RNG module. This module produce a 64 bit random number and also allows to de tune FROs when repeated pattern is coming out of FROs. This series also has few fixes for the driver. Lokesh Vutla (6): hwrng: OMAP: Use module_platform_driver macro

[PATCH 6/6] hwrng: OMAP: Add OMAP4 TRNG support

2013-08-05 Thread Lokesh Vutla
Add support for OMAP4 version of TRNG module that is present on OMAP4, AM33xx and OMAP5 SoCs. The modules have several differences including register offsets, output size, triggering rng and how configuring FROs. To handle these differences, a platform_data structure is defined and contains routin

[PATCH 1/6] hwrng: OMAP: Use module_platform_driver macro

2013-08-05 Thread Lokesh Vutla
module_platform_driver() makes the code simpler. Using the macro in the driver. Signed-off-by: Lokesh Vutla --- drivers/char/hw_random/omap-rng.c | 18 ++ 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/drivers/char/hw_random/omap-rng.c b/drivers/char/hw_random/

[PATCH 2/6] hwrng: OMAP: Convert to devm_kzalloc()

2013-08-05 Thread Lokesh Vutla
Use devm_kzalloc() to make cleanup paths simpler. Signed-off-by: Lokesh Vutla --- drivers/char/hw_random/omap-rng.c |9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/char/hw_random/omap-rng.c b/drivers/char/hw_random/omap-rng.c index 3e9a7ec..9c19396 100644

[PATCH 5/6] ARM: OMAP2+: Only manually add hwmod data when DT not used.

2013-08-05 Thread Lokesh Vutla
The omap_init_rng() routine in devices.c only needs to be called when there is no device tree present. Cc: Tony Lindgren Signed-off-by: Lokesh Vutla --- arch/arm/mach-omap2/devices.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/

[PATCH 4/6] hwrng: OMAP: Add device tree support

2013-08-05 Thread Lokesh Vutla
Add Device Tree suport to the omap-rng driver. Currently, only support for OMAP2 and OMAP3 is being added but support for OMAP4 and OMAP5 will be added in a subsequent patch. Signed-off-by: Lokesh Vutla --- drivers/char/hw_random/omap-rng.c | 12 1 file changed, 12 insertions(+)