public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: "Shilimkar, Santosh" <santosh.shilimkar@ti.com>
Cc: Russell King - ARM Linux <linux@arm.linux.org.uk>,
	"linux-arm-kernel@lists.arm.linux.org.uk"
	<linux-arm-kernel@lists.arm.linux.org.uk>,
	"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: [RESUBMIT][PATCH 4/7] OMAP4: Update common omap platform common sources.
Date: Mon, 18 May 2009 08:50:54 -0700	[thread overview]
Message-ID: <20090518155054.GQ19742@atomide.com> (raw)
In-Reply-To: <EAF47CD23C76F840A9E7FCE10091EFAB02B49042A1@dbde02.ent.ti.com>

* Shilimkar, Santosh <santosh.shilimkar@ti.com> [090516 13:04]:
> Thanks Russell for scanning all the patches minutely !!
> 
> > -----Original Message-----
> > From: Russell King - ARM Linux [mailto:linux@arm.linux.org.uk] 
> > Sent: Saturday, May 16, 2009 3:24 PM
> > To: Shilimkar, Santosh
> > Cc: linux-arm-kernel@lists.arm.linux.org.uk; 
> > linux-omap@vger.kernel.org
> > Subject: Re: [RESUBMIT][PATCH 4/7] OMAP4: Update common omap 
> > platform common sources.
> > 
> > On Thu, May 07, 2009 at 11:59:13AM +0530, Santosh Shilimkar wrote:
> > > @@ -309,3 +313,26 @@ void __init omap2_set_globals_343x(void)
> > >  }
> > >  #endif
> > >  
> > > +#if defined(CONFIG_ARCH_OMAP4)
> > > +static struct omap_globals *omap4_globals;
> > > +
> > > +static void __init __omap4_set_globals(void)
> > > +{
> > > +	omap2_set_globals_tap(omap4_globals);
> > > +	omap2_set_globals_control(omap4_globals);
> > > +}
> > > +static struct omap_globals omap443x_globals = {
> > > +	.class	= OMAP443X_CLASS,
> > > +	.tap	= OMAP2_IO_ADDRESS(0x4830A000),
> > > +	.ctrl	= OMAP2_IO_ADDRESS(OMAP443X_CTRL_BASE),
> > > +	.prm	= OMAP2_IO_ADDRESS(OMAP4430_PRM_BASE),
> > > +	.cm	= OMAP2_IO_ADDRESS(OMAP4430_CM_BASE),
> > > +};
> > > +
> > > +void __init omap2_set_globals_443x(void)
> > > +{
> > > +	omap4_globals = &omap443x_globals;
> > > +	__omap4_set_globals();
> > 
> > Hmm, confused.  omap4_globals is a static variable, and 
> > __omap4_set_globals
> > is a static function.  The only user of omap4_globals is 
> > __omap4_set_globals.
> > It looks to me like the only purpose of omap4_globals is to pass a
> > structure to __omap4_set_globals.  Why not use a function 
> > argument instead?
> Indeed. Actually I just more or less followed what is done for OMAP2/OMAP3 here. I will clean this for OMAP4.
> 
> Tony,
> We may want to clean up this for OMAP2/OMAP3 as well. Can we add this to the clean up patches planned if any. I can create the patch.

Sure, please post that patch for review.

Regards,

Tony

  reply	other threads:[~2009-05-18 15:51 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-07  6:29 [RESUBMIT][PATCH 1/7] OMAP4: Create architecture macros and config entries Santosh Shilimkar
2009-05-07  6:29 ` [RESUBMIT][PATCH 2/7] OMAP4: Create board support for OMAP_4430SDP Santosh Shilimkar
2009-05-07  6:29   ` [RESUBMIT][PATCH 3/7] OMAP4: Update common omap platform headers Santosh Shilimkar
2009-05-07  6:29     ` [RESUBMIT][PATCH 4/7] OMAP4: Update common omap platform common sources Santosh Shilimkar
2009-05-07  6:29       ` [RESUBMIT][PATCH 5/7] OMAP4: Update common omap machine specific sources Santosh Shilimkar
2009-05-07  6:29         ` [RESUBMIT][PATCH 6/7] OMAP4: Clock stubs since clock management framework not in Santosh Shilimkar
2009-05-07  6:29           ` [RESUBMIT][PATCH 7/7] Enable build for OMAP4 Santosh Shilimkar
2009-05-16 10:14           ` [RESUBMIT][PATCH 6/7] OMAP4: Clock stubs since clock management framework not in Russell King - ARM Linux
2009-05-16 20:21             ` Shilimkar, Santosh
2009-05-16 10:07         ` [RESUBMIT][PATCH 5/7] OMAP4: Update common omap machine specific sources Russell King - ARM Linux
2009-05-16 20:17           ` Shilimkar, Santosh
2009-05-17 13:00           ` Shilimkar, Santosh
2009-05-17 15:32             ` Russell King - ARM Linux
2009-05-18  3:59               ` Shilimkar, Santosh
2009-05-16 10:11         ` Russell King - ARM Linux
2009-05-16 15:35           ` Tony Lindgren
2009-05-16  9:53       ` [RESUBMIT][PATCH 4/7] OMAP4: Update common omap platform common sources Russell King - ARM Linux
2009-05-16 20:04         ` Shilimkar, Santosh
2009-05-18 15:50           ` Tony Lindgren [this message]
2009-05-18 15:52             ` Shilimkar, Santosh
2009-05-18 12:07         ` Shilimkar, Santosh
2009-05-18 12:15           ` Russell King - ARM Linux
2009-05-16  9:30     ` [RESUBMIT][PATCH 3/7] OMAP4: Update common omap platform headers Russell King - ARM Linux
2009-05-16  9:27   ` [RESUBMIT][PATCH 2/7] OMAP4: Create board support for OMAP_4430SDP Russell King - ARM Linux
2009-05-17  6:36     ` Shilimkar, Santosh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090518155054.GQ19742@atomide.com \
    --to=tony@atomide.com \
    --cc=linux-arm-kernel@lists.arm.linux.org.uk \
    --cc=linux-omap@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=santosh.shilimkar@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox