linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: ux300: Fix unimplementable regulation constraints
@ 2012-03-31 16:44 Mark Brown
  2012-04-01 10:00 ` Linus Walleij
  0 siblings, 1 reply; 4+ messages in thread
From: Mark Brown @ 2012-03-31 16:44 UTC (permalink / raw)
  To: linux-arm-kernel

It doesn't make sense to grant permission to change the status of a
regulator that is also set as always on and similarly it doesn't make
sense to allow a driver to change the voltage of a regulator which can
only be set to a single voltage.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
---
 arch/arm/mach-u300/i2c.c |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)

diff --git a/arch/arm/mach-u300/i2c.c b/arch/arm/mach-u300/i2c.c
index a38f802..cb04bd6 100644
--- a/arch/arm/mach-u300/i2c.c
+++ b/arch/arm/mach-u300/i2c.c
@@ -146,9 +146,6 @@ static struct ab3100_platform_data ab3100_plf_data = {
 				.min_uV = 1800000,
 				.max_uV = 1800000,
 				.valid_modes_mask = REGULATOR_MODE_NORMAL,
-				.valid_ops_mask =
-				REGULATOR_CHANGE_VOLTAGE |
-				REGULATOR_CHANGE_STATUS,
 				.always_on = 1,
 				.boot_on = 1,
 			},
@@ -160,9 +157,6 @@ static struct ab3100_platform_data ab3100_plf_data = {
 				.min_uV = 2500000,
 				.max_uV = 2500000,
 				.valid_modes_mask = REGULATOR_MODE_NORMAL,
-				.valid_ops_mask =
-				REGULATOR_CHANGE_VOLTAGE |
-				REGULATOR_CHANGE_STATUS,
 				.always_on = 1,
 				.boot_on = 1,
 			},
@@ -230,8 +224,7 @@ static struct ab3100_platform_data ab3100_plf_data = {
 				.max_uV = 1800000,
 				.valid_modes_mask = REGULATOR_MODE_NORMAL,
 				.valid_ops_mask =
-				REGULATOR_CHANGE_VOLTAGE |
-				REGULATOR_CHANGE_STATUS,
+				REGULATOR_CHANGE_VOLTAGE,
 				.always_on = 1,
 				.boot_on = 1,
 			},
-- 
1.7.9.1

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

* [PATCH] ARM: ux300: Fix unimplementable regulation constraints
  2012-03-31 16:44 [PATCH] ARM: ux300: Fix unimplementable regulation constraints Mark Brown
@ 2012-04-01 10:00 ` Linus Walleij
  2012-04-01 10:18   ` Mark Brown
  0 siblings, 1 reply; 4+ messages in thread
From: Linus Walleij @ 2012-04-01 10:00 UTC (permalink / raw)
  To: linux-arm-kernel

On Sat, Mar 31, 2012 at 6:44 PM, Mark Brown
<broonie@opensource.wolfsonmicro.com> wrote:

> It doesn't make sense to grant permission to change the status of a
> regulator that is also set as always on and similarly it doesn't make
> sense to allow a driver to change the voltage of a regulator which can
> only be set to a single voltage.
>
> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

Most probably correct.
Acked-by: Linus Walleij <linus.walleij@linaro.org>

Do you want me to funnel this to ARM-SoC or will you carry it in the
regulator tree?

Thanks,
Linus Walleij

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

* [PATCH] ARM: ux300: Fix unimplementable regulation constraints
  2012-04-01 10:00 ` Linus Walleij
@ 2012-04-01 10:18   ` Mark Brown
  2012-04-01 17:24     ` Linus Walleij
  0 siblings, 1 reply; 4+ messages in thread
From: Mark Brown @ 2012-04-01 10:18 UTC (permalink / raw)
  To: linux-arm-kernel

On Sun, Apr 01, 2012 at 12:00:13PM +0200, Linus Walleij wrote:
> On Sat, Mar 31, 2012 at 6:44 PM, Mark Brown

> > It doesn't make sense to grant permission to change the status of a
> > regulator that is also set as always on and similarly it doesn't make
> > sense to allow a driver to change the voltage of a regulator which can
> > only be set to a single voltage.

> Most probably correct.
> Acked-by: Linus Walleij <linus.walleij@linaro.org>

> Do you want me to funnel this to ARM-SoC or will you carry it in the
> regulator tree?

May as well send it via ARM-SoC, there's no interdependency with the
regulator tree here.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20120401/7def962b/attachment.sig>

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

* [PATCH] ARM: ux300: Fix unimplementable regulation constraints
  2012-04-01 10:18   ` Mark Brown
@ 2012-04-01 17:24     ` Linus Walleij
  0 siblings, 0 replies; 4+ messages in thread
From: Linus Walleij @ 2012-04-01 17:24 UTC (permalink / raw)
  To: linux-arm-kernel

On Sun, Apr 1, 2012 at 12:18 PM, Mark Brown
<broonie@opensource.wolfsonmicro.com> wrote:
> On Sun, Apr 01, 2012 at 12:00:13PM +0200, Linus Walleij wrote:
>> Do you want me to funnel this to ARM-SoC or will you carry it in the
>> regulator tree?
>
> May as well send it via ARM-SoC, there's no interdependency with the
> regulator tree here.

OK I'll push this for the -rc:s.

Thanks,
Linus Walleij

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

end of thread, other threads:[~2012-04-01 17:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-31 16:44 [PATCH] ARM: ux300: Fix unimplementable regulation constraints Mark Brown
2012-04-01 10:00 ` Linus Walleij
2012-04-01 10:18   ` Mark Brown
2012-04-01 17:24     ` Linus Walleij

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).