All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH RFT] regulator: ab8500: Set enable enable_time in regulator_desc
@ 2012-07-04  2:31 Axel Lin
  2012-07-04 15:48 ` Mark Brown
  0 siblings, 1 reply; 6+ messages in thread
From: Axel Lin @ 2012-07-04  2:31 UTC (permalink / raw)
  To: Mark Brown; +Cc: Lee Jones, Linus Walleij, Liam Girdwood, linux-kernel

Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
Hi Linus,
While working on this patch, I found in original code:
ab8500_regulator_ops set enable_time callback to ab8500_regulator_enable_time,
but does not set the delay in ab8500_regulator_info.
I'm not sure the delay value is 0 for ab8500_regulator_ops, or the setting is
just missing.
Anyway, there is no behavior change by this patch.

Regards,
Axel
 drivers/regulator/ab8500.c |   10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/drivers/regulator/ab8500.c b/drivers/regulator/ab8500.c
index 13d424f..6230c40 100644
--- a/drivers/regulator/ab8500.c
+++ b/drivers/regulator/ab8500.c
@@ -238,13 +238,6 @@ static int ab8500_regulator_set_voltage_sel(struct regulator_dev *rdev,
 	return ret;
 }
 
-static int ab8500_regulator_enable_time(struct regulator_dev *rdev)
-{
-	struct ab8500_regulator_info *info = rdev_get_drvdata(rdev);
-
-	return info->delay;
-}
-
 static int ab8500_regulator_set_voltage_time_sel(struct regulator_dev *rdev,
 					     unsigned int old_sel,
 					     unsigned int new_sel)
@@ -261,7 +254,6 @@ static struct regulator_ops ab8500_regulator_ops = {
 	.get_voltage_sel = ab8500_regulator_get_voltage_sel,
 	.set_voltage_sel = ab8500_regulator_set_voltage_sel,
 	.list_voltage	= regulator_list_voltage_table,
-	.enable_time	= ab8500_regulator_enable_time,
 	.set_voltage_time_sel = ab8500_regulator_set_voltage_time_sel,
 };
 
@@ -276,7 +268,6 @@ static struct regulator_ops ab8500_regulator_fixed_ops = {
 	.is_enabled	= ab8500_regulator_is_enabled,
 	.get_voltage	= ab8500_fixed_get_voltage,
 	.list_voltage	= regulator_list_voltage_linear,
-	.enable_time	= ab8500_regulator_enable_time,
 };
 
 static struct ab8500_regulator_info
@@ -374,6 +365,7 @@ static struct ab8500_regulator_info
 			.owner		= THIS_MODULE,
 			.n_voltages	= 1,
 			.min_uV		= 2000000,
+			.enable_time	= 10000,
 		},
 		.delay			= 10000,
 		.update_bank		= 0x03,
-- 
1.7.9.5




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

* Re: [PATCH RFT] regulator: ab8500: Set enable enable_time in regulator_desc
  2012-07-04  2:31 [PATCH RFT] regulator: ab8500: Set enable enable_time in regulator_desc Axel Lin
@ 2012-07-04 15:48 ` Mark Brown
  2012-08-06 15:46   ` Axel Lin
  0 siblings, 1 reply; 6+ messages in thread
From: Mark Brown @ 2012-07-04 15:48 UTC (permalink / raw)
  To: Axel Lin; +Cc: Lee Jones, Linus Walleij, Liam Girdwood, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 595 bytes --]

On Wed, Jul 04, 2012 at 10:31:45AM +0800, Axel Lin wrote:
> Signed-off-by: Axel Lin <axel.lin@gmail.com>
> ---
> Hi Linus,
> While working on this patch, I found in original code:
> ab8500_regulator_ops set enable_time callback to ab8500_regulator_enable_time,
> but does not set the delay in ab8500_regulator_info.
> I'm not sure the delay value is 0 for ab8500_regulator_ops, or the setting is
> just missing.
> Anyway, there is no behavior change by this patch.

Surely if the delay is not set in info then it'll introduce a delay
which wasn't there before (but which may well be a bug fix)?

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

* Re: [PATCH RFT] regulator: ab8500: Set enable enable_time in regulator_desc
  2012-07-04 15:48 ` Mark Brown
@ 2012-08-06 15:46   ` Axel Lin
  2012-08-06 15:50     ` Linus Walleij
  0 siblings, 1 reply; 6+ messages in thread
From: Axel Lin @ 2012-08-06 15:46 UTC (permalink / raw)
  To: Mark Brown; +Cc: Lee Jones, Linus Walleij, Liam Girdwood, linux-kernel

2012/7/4 Mark Brown <broonie@opensource.wolfsonmicro.com>:
> On Wed, Jul 04, 2012 at 10:31:45AM +0800, Axel Lin wrote:
>> Signed-off-by: Axel Lin <axel.lin@gmail.com>
>> ---
>> Hi Linus,
>> While working on this patch, I found in original code:
>> ab8500_regulator_ops set enable_time callback to ab8500_regulator_enable_time,
>> but does not set the delay in ab8500_regulator_info.
>> I'm not sure the delay value is 0 for ab8500_regulator_ops, or the setting is
>> just missing.
>> Anyway, there is no behavior change by this patch.
>
> Surely if the delay is not set in info then it'll introduce a delay
> which wasn't there before (but which may well be a bug fix)?

Ping...

Hi Linus,
Any comments on this patch?

Regards,
Axel

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

* Re: [PATCH RFT] regulator: ab8500: Set enable enable_time in regulator_desc
  2012-08-06 15:46   ` Axel Lin
@ 2012-08-06 15:50     ` Linus Walleij
  2012-08-07  9:32       ` Linus Walleij
  0 siblings, 1 reply; 6+ messages in thread
From: Linus Walleij @ 2012-08-06 15:50 UTC (permalink / raw)
  To: axel.lin
  Cc: Mark Brown, Lee Jones, Linus Walleij, Liam Girdwood,
	linux-kernel, Daniel WILLERUD, Mattias WALLIN

On Mon, Aug 6, 2012 at 5:46 PM, Axel Lin <axel.lin@gmail.com> wrote:
> 2012/7/4 Mark Brown <broonie@opensource.wolfsonmicro.com>:
>> On Wed, Jul 04, 2012 at 10:31:45AM +0800, Axel Lin wrote:
>>> Signed-off-by: Axel Lin <axel.lin@gmail.com>
>>> ---
>>> Hi Linus,
>>> While working on this patch, I found in original code:
>>> ab8500_regulator_ops set enable_time callback to ab8500_regulator_enable_time,
>>> but does not set the delay in ab8500_regulator_info.
>>> I'm not sure the delay value is 0 for ab8500_regulator_ops, or the setting is
>>> just missing.
>>> Anyway, there is no behavior change by this patch.
>>
>> Surely if the delay is not set in info then it'll introduce a delay
>> which wasn't there before (but which may well be a bug fix)?
>
> Ping...
>
> Hi Linus,
> Any comments on this patch?

Looks good to me:
Acked-by: Linus Walleij <linus.walleij@linaro.org>

I need to check the proper rise times with the maintainers.

Yours,
Linus Walleij

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

* Re: [PATCH RFT] regulator: ab8500: Set enable enable_time in regulator_desc
  2012-08-06 15:50     ` Linus Walleij
@ 2012-08-07  9:32       ` Linus Walleij
  2012-08-07 10:57         ` Mark Brown
  0 siblings, 1 reply; 6+ messages in thread
From: Linus Walleij @ 2012-08-07  9:32 UTC (permalink / raw)
  To: axel.lin
  Cc: Mark Brown, Lee Jones, Linus Walleij, Liam Girdwood,
	linux-kernel, Daniel WILLERUD, Mattias WALLIN, Marcus COOPER

On Mon, Aug 6, 2012 at 5:50 PM, Linus Walleij <linus.walleij@linaro.org> wrote:
> On Mon, Aug 6, 2012 at 5:46 PM, Axel Lin <axel.lin@gmail.com> wrote:
>> 2012/7/4 Mark Brown <broonie@opensource.wolfsonmicro.com>:
>>> On Wed, Jul 04, 2012 at 10:31:45AM +0800, Axel Lin wrote:
>>>> Signed-off-by: Axel Lin <axel.lin@gmail.com>
>>>> ---
>>>> Hi Linus,
>>>> While working on this patch, I found in original code:
>>>> ab8500_regulator_ops set enable_time callback to ab8500_regulator_enable_time,
>>>> but does not set the delay in ab8500_regulator_info.
>>>> I'm not sure the delay value is 0 for ab8500_regulator_ops, or the setting is
>>>> just missing.
>>>> Anyway, there is no behavior change by this patch.
>>>
>>> Surely if the delay is not set in info then it'll introduce a delay
>>> which wasn't there before (but which may well be a bug fix)?
>>
>> Ping...
>>
>> Hi Linus,
>> Any comments on this patch?
>
> Looks good to me:
> Acked-by: Linus Walleij <linus.walleij@linaro.org>
>
> I need to check the proper rise times with the maintainers.

I remember this now. Only that one regulator has a non-negligeble
rise time, so for that reason it's set to that value. Atleast so I was
told once upon a time when I implemented it, so this patch
should be fine.

Yours,
Linus Walleij

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

* Re: [PATCH RFT] regulator: ab8500: Set enable enable_time in regulator_desc
  2012-08-07  9:32       ` Linus Walleij
@ 2012-08-07 10:57         ` Mark Brown
  0 siblings, 0 replies; 6+ messages in thread
From: Mark Brown @ 2012-08-07 10:57 UTC (permalink / raw)
  To: Linus Walleij
  Cc: axel.lin, Lee Jones, Linus Walleij, Liam Girdwood, linux-kernel,
	Daniel WILLERUD, Mattias WALLIN, Marcus COOPER

On Tue, Aug 07, 2012 at 11:32:27AM +0200, Linus Walleij wrote:

> I remember this now. Only that one regulator has a non-negligeble
> rise time, so for that reason it's set to that value. Atleast so I was
> told once upon a time when I implemented it, so this patch
> should be fine.

Please resend the patch if I didn't apply it already, I've not got it
any more.

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

end of thread, other threads:[~2012-08-07 10:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-04  2:31 [PATCH RFT] regulator: ab8500: Set enable enable_time in regulator_desc Axel Lin
2012-07-04 15:48 ` Mark Brown
2012-08-06 15:46   ` Axel Lin
2012-08-06 15:50     ` Linus Walleij
2012-08-07  9:32       ` Linus Walleij
2012-08-07 10:57         ` Mark Brown

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.