* [PATCH v2 09/09] regulator: refresh 88pm8607 driver with updated api
@ 2009-12-09 13:18 Haojian Zhuang
2009-12-09 15:20 ` Mark Brown
0 siblings, 1 reply; 5+ messages in thread
From: Haojian Zhuang @ 2009-12-09 13:18 UTC (permalink / raw)
To: linux-arm-kernel
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2 09/09] regulator: refresh 88pm8607 driver with updated api
2009-12-09 13:18 [PATCH v2 09/09] regulator: refresh 88pm8607 driver with updated api Haojian Zhuang
@ 2009-12-09 15:20 ` Mark Brown
2009-12-10 3:44 ` Haojian Zhuang
0 siblings, 1 reply; 5+ messages in thread
From: Mark Brown @ 2009-12-09 15:20 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Dec 09, 2009 at 08:18:18AM -0500, Haojian Zhuang wrote:
> Since i2c API of mfd 88pm860x driver is changed, refresh 88pm8607 driver.
> Remove the support of 88PM8607 A0/A1 stepping.
> Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
Might be nice to split the removal of the old devices into a separate
patch but that is definitely a win. One blocker below, though.
> + ret = (index < 3) ? (index * 50000 + 1800000) :
> + ((index < 7) ? (index * 50000 + 2550000) :
> + 3300000);
I know the previous code did this but I'm really not loving the multiple
ternery operators here for legibility.
> return 0;
> }
> -subsys_initcall(pm8607_regulator_init);
> +module_init(pm8607_regulator_init);
This should be left at subsys_initcall() to try to ensure that the
regulators are initialsied before the things that use them, otherwise
the handling of init sequencing gets too complex.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2 09/09] regulator: refresh 88pm8607 driver with updated api
2009-12-09 15:20 ` Mark Brown
@ 2009-12-10 3:44 ` Haojian Zhuang
2009-12-10 10:31 ` Mark Brown
2009-12-15 15:07 ` Liam Girdwood
0 siblings, 2 replies; 5+ messages in thread
From: Haojian Zhuang @ 2009-12-10 3:44 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Dec 9, 2009 at 10:20 AM, Mark Brown
<broonie@opensource.wolfsonmicro.com> wrote:
> On Wed, Dec 09, 2009 at 08:18:18AM -0500, Haojian Zhuang wrote:
>
>> Since i2c API of mfd 88pm860x driver is changed, refresh 88pm8607 driver.
>> Remove the support of 88PM8607 A0/A1 stepping.
>
>> Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
>
> Might be nice to split the removal of the old devices into a separate
> patch but that is definitely a win. ?One blocker below, though.
>
>> + ? ? ? ? ? ? ret = (index < 3) ? (index * 50000 + 1800000) :
>> + ? ? ? ? ? ? ? ? ? ? ((index < 7) ? (index * 50000 + 2550000) :
>> + ? ? ? ? ? ? ? ? ? ? 3300000);
>
> I know the previous code did this but I'm really not loving the multiple
> ternery operators here for legibility.
>
>> ? ? ? return 0;
>> ?}
>> -subsys_initcall(pm8607_regulator_init);
>> +module_init(pm8607_regulator_init);
>
> This should be left at subsys_initcall() to try to ensure that the
> regulators are initialsied before the things that use them, otherwise
> the handling of init sequencing gets too complex.
>
Now split this patch into two. Thanks :)
Best Regards
Haojian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0009-regulator-refresh-88pm8607-driver-with-updated-api.patch
Type: text/x-patch
Size: 5509 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20091209/00e76454/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0010-regulator-unsupport-88pm8607-A0-and-A1.patch
Type: text/x-patch
Size: 9843 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20091209/00e76454/attachment-0003.bin>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2 09/09] regulator: refresh 88pm8607 driver with updated api
2009-12-10 3:44 ` Haojian Zhuang
@ 2009-12-10 10:31 ` Mark Brown
2009-12-15 15:07 ` Liam Girdwood
1 sibling, 0 replies; 5+ messages in thread
From: Mark Brown @ 2009-12-10 10:31 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Dec 09, 2009 at 10:44:15PM -0500, Haojian Zhuang wrote:
> Now split this patch into two. Thanks :)
Both look OK to me:
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2 09/09] regulator: refresh 88pm8607 driver with updated api
2009-12-10 3:44 ` Haojian Zhuang
2009-12-10 10:31 ` Mark Brown
@ 2009-12-15 15:07 ` Liam Girdwood
1 sibling, 0 replies; 5+ messages in thread
From: Liam Girdwood @ 2009-12-15 15:07 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, 2009-12-09 at 22:44 -0500, Haojian Zhuang wrote:
> On Wed, Dec 9, 2009 at 10:20 AM, Mark Brown
> <broonie@opensource.wolfsonmicro.com> wrote:
> > On Wed, Dec 09, 2009 at 08:18:18AM -0500, Haojian Zhuang wrote:
> >
> >> Since i2c API of mfd 88pm860x driver is changed, refresh 88pm8607 driver.
> >> Remove the support of 88PM8607 A0/A1 stepping.
> >
> >> Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
> >
> > Might be nice to split the removal of the old devices into a separate
> > patch but that is definitely a win. One blocker below, though.
> >
> >> + ret = (index < 3) ? (index * 50000 + 1800000) :
> >> + ((index < 7) ? (index * 50000 + 2550000) :
> >> + 3300000);
> >
> > I know the previous code did this but I'm really not loving the multiple
> > ternery operators here for legibility.
> >
> >> return 0;
> >> }
> >> -subsys_initcall(pm8607_regulator_init);
> >> +module_init(pm8607_regulator_init);
> >
> > This should be left at subsys_initcall() to try to ensure that the
> > regulators are initialsied before the things that use them, otherwise
> > the handling of init sequencing gets too complex.
> >
>
> Now split this patch into two. Thanks :)
Applied both.
Thanks
Liam
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-12-15 15:07 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-09 13:18 [PATCH v2 09/09] regulator: refresh 88pm8607 driver with updated api Haojian Zhuang
2009-12-09 15:20 ` Mark Brown
2009-12-10 3:44 ` Haojian Zhuang
2009-12-10 10:31 ` Mark Brown
2009-12-15 15:07 ` Liam Girdwood
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).