* [PATCH 1/1] twl4030-regulator: Remove regulator from all groups when disabling
@ 2009-11-20 16:29 Eduardo Valentin
2009-11-20 17:08 ` Eduardo Valentin
2009-11-20 19:07 ` Liam Girdwood
0 siblings, 2 replies; 6+ messages in thread
From: Eduardo Valentin @ 2009-11-20 16:29 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown, David Brownell, Samuel Ortiz
Cc: LKML, \"De-Schrijver Peter (Nokia-D/Helsinki)\",
Eduardo Valentin
Just remove regulator from all groups when disabling. This way we
avoid problems if boot loader touches twl4030 registers.
Signed-off-by: Eduardo Valentin <eduardo.valentin@nokia.com>
---
drivers/regulator/twl4030-regulator.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/regulator/twl4030-regulator.c b/drivers/regulator/twl4030-regulator.c
index e2032fb..27b3115 100644
--- a/drivers/regulator/twl4030-regulator.c
+++ b/drivers/regulator/twl4030-regulator.c
@@ -126,7 +126,7 @@ static int twl4030reg_disable(struct regulator_dev *rdev)
if (grp < 0)
return grp;
- grp &= ~P1_GRP;
+ grp &= ~(P1_GRP & P2_GRP | P3_GRP);
return twl4030reg_write(info, VREG_GRP, grp);
}
--
1.6.5.7.g9ecb2
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 1/1] twl4030-regulator: Remove regulator from all groups when disabling
2009-11-20 16:29 [PATCH 1/1] twl4030-regulator: Remove regulator from all groups when disabling Eduardo Valentin
@ 2009-11-20 17:08 ` Eduardo Valentin
2009-11-20 19:07 ` Liam Girdwood
1 sibling, 0 replies; 6+ messages in thread
From: Eduardo Valentin @ 2009-11-20 17:08 UTC (permalink / raw)
To: Valentin Eduardo (Nokia-D/Helsinki)
Cc: Liam Girdwood, Mark Brown, David Brownell, Samuel Ortiz, LKML,
De-Schrijver Peter (Nokia-D/Helsinki)
On Fri, Nov 20, 2009 at 05:29:19PM +0100, Valentin Eduardo (Nokia-D/Helsinki) wrote:
> Just remove regulator from all groups when disabling. This way we
> avoid problems if boot loader touches twl4030 registers.
>
> Signed-off-by: Eduardo Valentin <eduardo.valentin@nokia.com>
> ---
> drivers/regulator/twl4030-regulator.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/regulator/twl4030-regulator.c b/drivers/regulator/twl4030-regulator.c
> index e2032fb..27b3115 100644
> --- a/drivers/regulator/twl4030-regulator.c
> +++ b/drivers/regulator/twl4030-regulator.c
> @@ -126,7 +126,7 @@ static int twl4030reg_disable(struct regulator_dev *rdev)
> if (grp < 0)
> return grp;
>
> - grp &= ~P1_GRP;
> + grp &= ~(P1_GRP & P2_GRP | P3_GRP);
^
This has actually a typo. So please ignore it. I'll resend it.
> return twl4030reg_write(info, VREG_GRP, grp);
> }
>
> --
> 1.6.5.7.g9ecb2
--
Eduardo Valentin
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [PATCH 1/1] twl4030-regulator: Remove regulator from all groups when disabling
2009-11-20 16:29 [PATCH 1/1] twl4030-regulator: Remove regulator from all groups when disabling Eduardo Valentin
2009-11-20 17:08 ` Eduardo Valentin
@ 2009-11-20 19:07 ` Liam Girdwood
2009-11-23 7:08 ` Eduardo Valentin
1 sibling, 1 reply; 6+ messages in thread
From: Liam Girdwood @ 2009-11-20 19:07 UTC (permalink / raw)
To: Eduardo Valentin
Cc: Mark Brown, David Brownell, Samuel Ortiz, LKML,
\"De-Schrijver Peter (Nokia-D/Helsinki)\"
On Fri, 2009-11-20 at 18:29 +0200, Eduardo Valentin wrote:
> Just remove regulator from all groups when disabling. This way we
> avoid problems if boot loader touches twl4030 registers.
>
> Signed-off-by: Eduardo Valentin <eduardo.valentin@nokia.com>
> ---
> drivers/regulator/twl4030-regulator.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/regulator/twl4030-regulator.c b/drivers/regulator/twl4030-regulator.c
> index e2032fb..27b3115 100644
> --- a/drivers/regulator/twl4030-regulator.c
> +++ b/drivers/regulator/twl4030-regulator.c
> @@ -126,7 +126,7 @@ static int twl4030reg_disable(struct regulator_dev *rdev)
> if (grp < 0)
> return grp;
>
> - grp &= ~P1_GRP;
> + grp &= ~(P1_GRP & P2_GRP | P3_GRP);
> return twl4030reg_write(info, VREG_GRP, grp);
> }
>
Applied.
Thanks
Liam
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 1/1] twl4030-regulator: Remove regulator from all groups when disabling
2009-11-20 19:07 ` Liam Girdwood
@ 2009-11-23 7:08 ` Eduardo Valentin
2009-11-23 10:55 ` Liam Girdwood
0 siblings, 1 reply; 6+ messages in thread
From: Eduardo Valentin @ 2009-11-23 7:08 UTC (permalink / raw)
To: ext Liam Girdwood
Cc: Valentin Eduardo (Nokia-D/Helsinki), Mark Brown, David Brownell,
Samuel Ortiz, LKML, De-Schrijver Peter (Nokia-D/Helsinki)
Hello Liam,
On Fri, Nov 20, 2009 at 08:07:59PM +0100, ext Liam Girdwood wrote:
> On Fri, 2009-11-20 at 18:29 +0200, Eduardo Valentin wrote:
> > Just remove regulator from all groups when disabling. This way we
> > avoid problems if boot loader touches twl4030 registers.
> >
> > Signed-off-by: Eduardo Valentin <eduardo.valentin@nokia.com>
> > ---
> > drivers/regulator/twl4030-regulator.c | 2 +-
> > 1 files changed, 1 insertions(+), 1 deletions(-)
> >
> > diff --git a/drivers/regulator/twl4030-regulator.c b/drivers/regulator/twl4030-regulator.c
> > index e2032fb..27b3115 100644
> > --- a/drivers/regulator/twl4030-regulator.c
> > +++ b/drivers/regulator/twl4030-regulator.c
> > @@ -126,7 +126,7 @@ static int twl4030reg_disable(struct regulator_dev *rdev)
> > if (grp < 0)
> > return grp;
> >
> > - grp &= ~P1_GRP;
> > + grp &= ~(P1_GRP & P2_GRP | P3_GRP);
> > return twl4030reg_write(info, VREG_GRP, grp);
> > }
> >
>
> Applied.
Thanks for applying. But this one has actually a typo
It was supposed to be:
+ grp &= ~(P1_GRP | P2_GRP | P3_GRP);
Could you please apply this one instead:
http://lkml.org/lkml/2009/11/20/231
?
>
> Thanks
>
> Liam
>
BR,
--
Eduardo Valentin
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 1/1] twl4030-regulator: Remove regulator from all groups when disabling
2009-11-23 7:08 ` Eduardo Valentin
@ 2009-11-23 10:55 ` Liam Girdwood
0 siblings, 0 replies; 6+ messages in thread
From: Liam Girdwood @ 2009-11-23 10:55 UTC (permalink / raw)
To: eduardo.valentin
Cc: Mark Brown, David Brownell, Samuel Ortiz, LKML,
De-Schrijver Peter (Nokia-D/Helsinki)
On Mon, 2009-11-23 at 09:08 +0200, Eduardo Valentin wrote:
> Hello Liam,
>
> On Fri, Nov 20, 2009 at 08:07:59PM +0100, ext Liam Girdwood wrote:
> > On Fri, 2009-11-20 at 18:29 +0200, Eduardo Valentin wrote:
> > > Just remove regulator from all groups when disabling. This way we
> > > avoid problems if boot loader touches twl4030 registers.
> > >
> > > Signed-off-by: Eduardo Valentin <eduardo.valentin@nokia.com>
> > > ---
> > > drivers/regulator/twl4030-regulator.c | 2 +-
> > > 1 files changed, 1 insertions(+), 1 deletions(-)
> > >
> > > diff --git a/drivers/regulator/twl4030-regulator.c b/drivers/regulator/twl4030-regulator.c
> > > index e2032fb..27b3115 100644
> > > --- a/drivers/regulator/twl4030-regulator.c
> > > +++ b/drivers/regulator/twl4030-regulator.c
> > > @@ -126,7 +126,7 @@ static int twl4030reg_disable(struct regulator_dev *rdev)
> > > if (grp < 0)
> > > return grp;
> > >
> > > - grp &= ~P1_GRP;
> > > + grp &= ~(P1_GRP & P2_GRP | P3_GRP);
> > > return twl4030reg_write(info, VREG_GRP, grp);
> > > }
> > >
> >
> > Applied.
>
> Thanks for applying. But this one has actually a typo
> It was supposed to be:
>
> + grp &= ~(P1_GRP | P2_GRP | P3_GRP);
>
> Could you please apply this one instead:
> http://lkml.org/lkml/2009/11/20/231
>
> ?
Ah, I did see the new message but applied the wrong one (they both had
the same subject, a V2 subject would have been better).
Applied correct version now.
Thanks
Liam
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 1/1] twl4030-regulator: Remove regulator from all groups when disabling
@ 2009-11-20 17:15 Eduardo Valentin
0 siblings, 0 replies; 6+ messages in thread
From: Eduardo Valentin @ 2009-11-20 17:15 UTC (permalink / raw)
To: Mark Brown, David Brownell, Samuel Ortiz
Cc: LKML, De-Schrijver Peter, Eduardo Valentin
From: Eduardo Valentin <eduardo.valentin@nokia.com>
Just remove regulator from all groups when disabling. This way we
avoid problems if boot loader touches twl4030 registers.
Signed-off-by: Eduardo Valentin <eduardo.valentin@nokia.com>
---
drivers/regulator/twl4030-regulator.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/regulator/twl4030-regulator.c b/drivers/regulator/twl4030-regulator.c
index e2032fb..9365140 100644
--- a/drivers/regulator/twl4030-regulator.c
+++ b/drivers/regulator/twl4030-regulator.c
@@ -126,7 +126,7 @@ static int twl4030reg_disable(struct regulator_dev *rdev)
if (grp < 0)
return grp;
- grp &= ~P1_GRP;
+ grp &= ~(P1_GRP | P2_GRP | P3_GRP);
return twl4030reg_write(info, VREG_GRP, grp);
}
--
1.6.5.7.g9ecb2
^ permalink raw reply related [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-11-23 11:03 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-20 16:29 [PATCH 1/1] twl4030-regulator: Remove regulator from all groups when disabling Eduardo Valentin
2009-11-20 17:08 ` Eduardo Valentin
2009-11-20 19:07 ` Liam Girdwood
2009-11-23 7:08 ` Eduardo Valentin
2009-11-23 10:55 ` Liam Girdwood
-- strict thread matches above, loose matches on Subject: below --
2009-11-20 17:15 Eduardo Valentin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox