public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [patch 2.6.19-rc6-omap] fix rng platform device init
@ 2006-11-24 18:12 David Brownell
  2006-11-28  2:30 ` Tony Lindgren
  0 siblings, 1 reply; 2+ messages in thread
From: David Brownell @ 2006-11-24 18:12 UTC (permalink / raw)
  To: linux-omap-open-source

The platform device needed for /dev/hw_random wasn't being created
correctly; it used the wrong CONFIG symbol(s).

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>

----
FYI, output of one "rngtest" run on a mostly-idle OSK:

Indet: starting FIPS tests...
rngtest: bits received from input: 23479480032
rngtest: FIPS 140-2 successes: 1173013
rngtest: FIPS 140-2 failures: 961
rngtest: FIPS 140-2(2001-10-10) Monobit: 124
rngtest: FIPS 140-2(2001-10-10) Poker: 115
rngtest: FIPS 140-2(2001-10-10) Runs: 360
rngtest: FIPS 140-2(2001-10-10) Long run: 368
rngtest: FIPS 140-2(2001-10-10) Continuous run: 0
rngtest: input channel speed: (min=274.323; avg=968.504; max=1807.947)Kibits/s
rngtest: FIPS tests speed: (min=1.371; avg=5.956; max=6.129)Mibits/s
rngtest: Program run time: 27463201721 microseconds


--- osk2.orig/arch/arm/plat-omap/devices.c	2006-11-17 16:36:48.000000000 -0800
+++ osk2/arch/arm/plat-omap/devices.c	2006-11-24 09:57:46.000000000 -0800
@@ -440,7 +440,7 @@ static inline void omap_init_wdt(void) {
 
 /*-------------------------------------------------------------------------*/
 
-#if	defined(CONFIG_OMAP_RNG) || defined(CONFIG_OMAP_RNG_MODULE)
+#if defined(CONFIG_HW_RANDOM_OMAP) || defined(CONFIG_HW_RANDOM_OMAP_MODULE)
 
 #ifdef CONFIG_ARCH_OMAP24XX
 #define	OMAP_RNG_BASE		0x480A0000

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [patch 2.6.19-rc6-omap] fix rng platform device init
  2006-11-24 18:12 [patch 2.6.19-rc6-omap] fix rng platform device init David Brownell
@ 2006-11-28  2:30 ` Tony Lindgren
  0 siblings, 0 replies; 2+ messages in thread
From: Tony Lindgren @ 2006-11-28  2:30 UTC (permalink / raw)
  To: David Brownell; +Cc: linux-omap-open-source

* David Brownell <david-b@pacbell.net> [061124 18:13]:
> The platform device needed for /dev/hw_random wasn't being created
> correctly; it used the wrong CONFIG symbol(s).
> 
> Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
> 
> ----
> FYI, output of one "rngtest" run on a mostly-idle OSK:
> 
> Indet: starting FIPS tests...
> rngtest: bits received from input: 23479480032
> rngtest: FIPS 140-2 successes: 1173013
> rngtest: FIPS 140-2 failures: 961
> rngtest: FIPS 140-2(2001-10-10) Monobit: 124
> rngtest: FIPS 140-2(2001-10-10) Poker: 115
> rngtest: FIPS 140-2(2001-10-10) Runs: 360
> rngtest: FIPS 140-2(2001-10-10) Long run: 368
> rngtest: FIPS 140-2(2001-10-10) Continuous run: 0
> rngtest: input channel speed: (min=274.323; avg=968.504; max=1807.947)Kibits/s
> rngtest: FIPS tests speed: (min=1.371; avg=5.956; max=6.129)Mibits/s
> rngtest: Program run time: 27463201721 microseconds
> 
> 
> --- osk2.orig/arch/arm/plat-omap/devices.c	2006-11-17 16:36:48.000000000 -0800
> +++ osk2/arch/arm/plat-omap/devices.c	2006-11-24 09:57:46.000000000 -0800
> @@ -440,7 +440,7 @@ static inline void omap_init_wdt(void) {
>  
>  /*-------------------------------------------------------------------------*/
>  
> -#if	defined(CONFIG_OMAP_RNG) || defined(CONFIG_OMAP_RNG_MODULE)
> +#if defined(CONFIG_HW_RANDOM_OMAP) || defined(CONFIG_HW_RANDOM_OMAP_MODULE)
>  
>  #ifdef CONFIG_ARCH_OMAP24XX
>  #define	OMAP_RNG_BASE		0x480A0000

Thanks, pushing today.

Tony

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-11-28  2:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-24 18:12 [patch 2.6.19-rc6-omap] fix rng platform device init David Brownell
2006-11-28  2:30 ` Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox