All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] regulator: Default GPIO controlled WM8994 regulators to disabled
@ 2010-08-06 14:48 Mark Brown
  2010-08-09  8:24 ` Liam Girdwood
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Brown @ 2010-08-06 14:48 UTC (permalink / raw)
  To: Liam Girdwood; +Cc: linux-kernel, Joonyoung Shim, Mark Brown, stable

From: Joonyoung Shim <jy0922.shim@samsung.com>

This ensures that if the GPIO was not enabled prior to the driver
starting the regulator API will insert the required powerup ramp
delay when it enables the regulator.  The gpiolib API does not
provide this information.

[Rewrote changelog to describe the actual change -- broonie.]

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@kernel.org
---
 drivers/regulator/wm8994-regulator.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/regulator/wm8994-regulator.c b/drivers/regulator/wm8994-regulator.c
index 5a1dc8a..03713bc 100644
--- a/drivers/regulator/wm8994-regulator.c
+++ b/drivers/regulator/wm8994-regulator.c
@@ -219,8 +219,6 @@ static __devinit int wm8994_ldo_probe(struct platform_device *pdev)
 
 	ldo->wm8994 = wm8994;
 
-	ldo->is_enabled = true;
-
 	if (pdata->ldo[id].enable && gpio_is_valid(pdata->ldo[id].enable)) {
 		ldo->enable = pdata->ldo[id].enable;
 
@@ -237,7 +235,8 @@ static __devinit int wm8994_ldo_probe(struct platform_device *pdev)
 				ret);
 			goto err_gpio;
 		}
-	}
+	} else
+		ldo->is_enabled = true;
 
 	ldo->regulator = regulator_register(&wm8994_ldo_desc[id], &pdev->dev,
 					     pdata->ldo[id].init_data, ldo);
-- 
1.7.1


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

* Re: [PATCH] regulator: Default GPIO controlled WM8994 regulators to disabled
  2010-08-06 14:48 [PATCH] regulator: Default GPIO controlled WM8994 regulators to disabled Mark Brown
@ 2010-08-09  8:24 ` Liam Girdwood
  0 siblings, 0 replies; 2+ messages in thread
From: Liam Girdwood @ 2010-08-09  8:24 UTC (permalink / raw)
  To: Mark Brown; +Cc: linux-kernel, Joonyoung Shim, stable

On Fri, 2010-08-06 at 15:48 +0100, Mark Brown wrote:
> From: Joonyoung Shim <jy0922.shim@samsung.com>
> 
> This ensures that if the GPIO was not enabled prior to the driver
> starting the regulator API will insert the required powerup ramp
> delay when it enables the regulator.  The gpiolib API does not
> provide this information.
> 
> [Rewrote changelog to describe the actual change -- broonie.]
> 
> Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
> Cc: stable@kernel.org
> ---

Applied.

Thanks

Liam
-- 
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk


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

end of thread, other threads:[~2010-08-09  8:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-06 14:48 [PATCH] regulator: Default GPIO controlled WM8994 regulators to disabled Mark Brown
2010-08-09  8:24 ` Liam Girdwood

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.