public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mfd/da903x: initialize PMIC core early
@ 2009-06-15 12:02 Mike Rapoport
  2009-06-15 13:51 ` Samuel Ortiz
  0 siblings, 1 reply; 5+ messages in thread
From: Mike Rapoport @ 2009-06-15 12:02 UTC (permalink / raw)
  To: sameo; +Cc: eric miao, LKML

Samuel,
It'd be great if this can go to 2.6.31

Signed-off-by: Mike Rapoport <mike@compulab.co.il>
---
 drivers/mfd/da903x.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mfd/da903x.c b/drivers/mfd/da903x.c
index 7283d88..e5ffe56 100644
--- a/drivers/mfd/da903x.c
+++ b/drivers/mfd/da903x.c
@@ -561,7 +561,7 @@ static int __init da903x_init(void)
 {
 	return i2c_add_driver(&da903x_driver);
 }
-module_init(da903x_init);
+subsys_initcall(da903x_init);

 static void __exit da903x_exit(void)
 {
-- 
1.6.0.6


-- 
Sincerely yours,
Mike.


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

* Re: [PATCH] mfd/da903x: initialize PMIC core early
  2009-06-15 12:02 [PATCH] mfd/da903x: initialize PMIC core early Mike Rapoport
@ 2009-06-15 13:51 ` Samuel Ortiz
  2009-06-15 14:08   ` Mike Rapoport
  0 siblings, 1 reply; 5+ messages in thread
From: Samuel Ortiz @ 2009-06-15 13:51 UTC (permalink / raw)
  To: Mike Rapoport; +Cc: eric miao, LKML

Hi Mike,

On Mon, Jun 15, 2009 at 03:02:09PM +0300, Mike Rapoport wrote:
> Samuel,
> It'd be great if this can go to 2.6.31
Sure. Care to explain why this needs to be called earlier ?

Cheers,
Samuel.

> Signed-off-by: Mike Rapoport <mike@compulab.co.il>
> ---
>  drivers/mfd/da903x.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/mfd/da903x.c b/drivers/mfd/da903x.c
> index 7283d88..e5ffe56 100644
> --- a/drivers/mfd/da903x.c
> +++ b/drivers/mfd/da903x.c
> @@ -561,7 +561,7 @@ static int __init da903x_init(void)
>  {
>  	return i2c_add_driver(&da903x_driver);
>  }
> -module_init(da903x_init);
> +subsys_initcall(da903x_init);
> 
>  static void __exit da903x_exit(void)
>  {
> -- 
> 1.6.0.6
> 
> 
> -- 
> Sincerely yours,
> Mike.
> 

-- 
Intel Open Source Technology Centre
http://oss.intel.com/

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

* Re: [PATCH] mfd/da903x: initialize PMIC core early
  2009-06-15 13:51 ` Samuel Ortiz
@ 2009-06-15 14:08   ` Mike Rapoport
  2009-06-15 14:34     ` Mark Brown
  0 siblings, 1 reply; 5+ messages in thread
From: Mike Rapoport @ 2009-06-15 14:08 UTC (permalink / raw)
  To: Samuel Ortiz; +Cc: eric miao, LKML



Samuel Ortiz wrote:
> Hi Mike,
> 
> On Mon, Jun 15, 2009 at 03:02:09PM +0300, Mike Rapoport wrote:
>> Samuel,
>> It'd be great if this can go to 2.6.31
> Sure. Care to explain why this needs to be called earlier ?

We want to have da903x regulators available early during boot, and since they
are subdevices of mfd/da903x they cannot be enabled until the da903x core is
initialized.
I just saw Liam Girdwood pull request with "regulator: Move regulator drivers to
subsys_initcall()" commit and jumped in :)


> Cheers,
> Samuel.
> 
>> Signed-off-by: Mike Rapoport <mike@compulab.co.il>
>> ---
>>  drivers/mfd/da903x.c |    2 +-
>>  1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/drivers/mfd/da903x.c b/drivers/mfd/da903x.c
>> index 7283d88..e5ffe56 100644
>> --- a/drivers/mfd/da903x.c
>> +++ b/drivers/mfd/da903x.c
>> @@ -561,7 +561,7 @@ static int __init da903x_init(void)
>>  {
>>  	return i2c_add_driver(&da903x_driver);
>>  }
>> -module_init(da903x_init);
>> +subsys_initcall(da903x_init);
>>
>>  static void __exit da903x_exit(void)
>>  {
>> -- 
>> 1.6.0.6
>>
>>
>> -- 
>> Sincerely yours,
>> Mike.
>>
> 

-- 
Sincerely yours,
Mike.


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

* Re: [PATCH] mfd/da903x: initialize PMIC core early
  2009-06-15 14:08   ` Mike Rapoport
@ 2009-06-15 14:34     ` Mark Brown
  2009-06-15 14:44       ` Samuel Ortiz
  0 siblings, 1 reply; 5+ messages in thread
From: Mark Brown @ 2009-06-15 14:34 UTC (permalink / raw)
  To: Mike Rapoport; +Cc: Samuel Ortiz, eric miao, LKML

On Mon, Jun 15, 2009 at 05:08:28PM +0300, Mike Rapoport wrote:
> Samuel Ortiz wrote:

> > Sure. Care to explain why this needs to be called earlier ?

> We want to have da903x regulators available early during boot, and since they
> are subdevices of mfd/da903x they cannot be enabled until the da903x core is
> initialized.
> I just saw Liam Girdwood pull request with "regulator: Move regulator drivers to
> subsys_initcall()" commit and jumped in :)

Any MFD core with regulators on it ought to be pulled forward to
subsys_initcall().  Doing this makes it easier to get a sensible
ordering during boot without having a song and dance in consumer
drivers waiting for the regulators that supply them to instantiate.

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

* Re: [PATCH] mfd/da903x: initialize PMIC core early
  2009-06-15 14:34     ` Mark Brown
@ 2009-06-15 14:44       ` Samuel Ortiz
  0 siblings, 0 replies; 5+ messages in thread
From: Samuel Ortiz @ 2009-06-15 14:44 UTC (permalink / raw)
  To: Mark Brown; +Cc: Mike Rapoport, eric miao, LKML

On Mon, Jun 15, 2009 at 03:34:11PM +0100, Mark Brown wrote:
> On Mon, Jun 15, 2009 at 05:08:28PM +0300, Mike Rapoport wrote:
> > Samuel Ortiz wrote:
> 
> > > Sure. Care to explain why this needs to be called earlier ?
> 
> > We want to have da903x regulators available early during boot, and since they
> > are subdevices of mfd/da903x they cannot be enabled until the da903x core is
> > initialized.
> > I just saw Liam Girdwood pull request with "regulator: Move regulator drivers to
> > subsys_initcall()" commit and jumped in :)
> 
> Any MFD core with regulators on it ought to be pulled forward to
> subsys_initcall().  Doing this makes it easier to get a sensible
> ordering during boot without having a song and dance in consumer
> drivers waiting for the regulators that supply them to instantiate.
Yep, I'm preparing a patch for that.

Cheers,
Samuel.

-- 
Intel Open Source Technology Centre
http://oss.intel.com/

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

end of thread, other threads:[~2009-06-15 14:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-15 12:02 [PATCH] mfd/da903x: initialize PMIC core early Mike Rapoport
2009-06-15 13:51 ` Samuel Ortiz
2009-06-15 14:08   ` Mike Rapoport
2009-06-15 14:34     ` Mark Brown
2009-06-15 14:44       ` Samuel Ortiz

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