From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Sun, 31 May 2009 17:58:08 +0100 (BST) Received: from mba.ocn.ne.jp ([122.1.235.107]:60948 "HELO smtp.mba.ocn.ne.jp" rhost-flags-OK-OK-OK-OK) by ftp.linux-mips.org with SMTP id S20023921AbZEaQ6A (ORCPT ); Sun, 31 May 2009 17:58:00 +0100 Received: from localhost (p4068-ipad206funabasi.chiba.ocn.ne.jp [222.145.78.68]) by smtp.mba.ocn.ne.jp (Postfix) with ESMTP id 8D1278AA0; Mon, 1 Jun 2009 01:57:55 +0900 (JST) Date: Mon, 01 Jun 2009 01:57:55 +0900 (JST) Message-Id: <20090601.015755.21367568.anemo@mba.ocn.ne.jp> To: mpm@selenic.com Cc: linux-mips@linux-mips.org, ralf@linux-mips.org, linux-kernel@vger.kernel.org, herbert@gondor.apana.org.au Subject: Re: [PATCH] TXx9: Add TX4939 RNG support From: Atsushi Nemoto In-Reply-To: <1243350141-883-2-git-send-email-anemo@mba.ocn.ne.jp> <1243642882.8020.9.camel@calx> References: <1243350141-883-2-git-send-email-anemo@mba.ocn.ne.jp> X-Fingerprint: 6ACA 1623 39BD 9A94 9B1A B746 CA77 FE94 2874 D52F X-Pgp-Public-Key: http://wwwkeys.pgp.net/pks/lookup?op=get&search=0x2874D52F X-Mailer: Mew version 5.2 on Emacs 22.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 23083 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: anemo@mba.ocn.ne.jp Precedence: bulk X-list: linux-mips : This is a reply for comments from Matt Mackall via mm-commit mail. On Fri, 29 May 2009 19:21:22 -0500, Matt Mackall 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