lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 01 Jun 2009 01:57:55 +0900 (JST)
From:	Atsushi Nemoto <anemo@....ocn.ne.jp>
To:	mpm@...enic.com
Cc:	linux-mips@...ux-mips.org, ralf@...ux-mips.org,
	linux-kernel@...r.kernel.org, herbert@...dor.apana.org.au
Subject: Re: [PATCH] TXx9: Add TX4939 RNG support

: This is a reply for comments from Matt Mackall via mm-commit mail.

On Fri, 29 May 2009 19:21:22 -0500, Matt Mackall <mpm@...enic.com> wrote:
> > +++ a/arch/mips/txx9/generic/setup_tx4939.c
> > @@ -494,6 +494,24 @@ void __init tx4939_aclc_init(void)
> >  			       TXX9_IRQ_BASE + TX4939_IR_ACLC, 1, 0, 1);
> >  }
> >  
> > +#define TX4939_RNG_REG	((TX4939_CRYPTO_REG & 0xfffffffffULL) + 0xb0)
> 
> This isn't the best place for this define?

Well, I can move it to include/asm/txx9/tx4939.h.

> > +++ a/arch/mips/txx9/rbtx4939/setup.c
> > @@ -501,6 +501,7 @@ static void __init rbtx4939_device_init(
> >  	tx4939_dmac_init(0, 2);
> >  	tx4939_aclc_init();
> >  	platform_device_register_simple("txx9aclc-generic", -1, NULL, 0);
> > +	tx4939_rng_init();
> >  }
> >  
> >  static void __init rbtx4939_setup(void)
> 
> Not clear to me how this works when this is a module?

This patch add a registration of a platform device for RNG to vmlinux.
And the other patch add a driver module for the RNG.  This strategy is
fairly common for SoCs or embedded platforms.

---
Atsushi Nemoto
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ