Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux: Kernel

[PATCH 1/1] twl4030-regulator: Remove regulator from all groups when disabling

 

 

Linux kernel RSS feed   Index | Next | Previous | View Threaded


eduardo.valentin at nokia

Nov 20, 2009, 8:29 AM

Post #1 of 6 (102 views)
Permalink
[PATCH 1/1] twl4030-regulator: Remove regulator from all groups when disabling

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 [at] nokia>
---
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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/


eduardo.valentin at nokia

Nov 20, 2009, 9:08 AM

Post #2 of 6 (95 views)
Permalink
Re: [PATCH 1/1] twl4030-regulator: Remove regulator from all groups when disabling [In reply to]

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 [at] nokia>
> ---
> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/


eduardo.valentin at nokia

Nov 20, 2009, 9:15 AM

Post #3 of 6 (99 views)
Permalink
[PATCH 1/1] twl4030-regulator: Remove regulator from all groups when disabling [In reply to]

From: Eduardo Valentin <eduardo.valentin [at] nokia>

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 [at] nokia>
---
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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/


lrg at slimlogic

Nov 20, 2009, 11:07 AM

Post #4 of 6 (95 views)
Permalink
Re: [PATCH 1/1] twl4030-regulator: Remove regulator from all groups when disabling [In reply to]

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 [at] nokia>
> ---
> 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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/


eduardo.valentin at nokia

Nov 22, 2009, 11:08 PM

Post #5 of 6 (88 views)
Permalink
Re: [PATCH 1/1] twl4030-regulator: Remove regulator from all groups when disabling [In reply to]

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 [at] nokia>
> > ---
> > 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/


lrg at slimlogic

Nov 23, 2009, 2:55 AM

Post #6 of 6 (86 views)
Permalink
Re: [PATCH 1/1] twl4030-regulator: Remove regulator from all groups when disabling [In reply to]

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 [at] nokia>
> > > ---
> > > 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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Linux kernel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.