Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1437904

Re: [PATCH] regulator: pwm: Fix regulator ramp delay for continuous mode

From Doug Anderson <dianders@chromium.org>
Newsgroups linux.kernel
Subject Re: [PATCH] regulator: pwm: Fix regulator ramp delay for continuous mode
Date 2016-07-06 20:40 +0200
Message-ID <rRZTP-4h6-3@gated-at.bofh.it> (permalink)
References <rOThT-25m-15@gated-at.bofh.it> <rRU7M-I3-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Boris,

On Wed, Jul 6, 2016 at 5:27 AM, Boris Brezillon
<boris.brezillon@free-electrons.com> wrote:
> On Mon, 27 Jun 2016 21:53:11 -0700
> Douglas Anderson <dianders@chromium.org> wrote:
>
>> The original commit adding support for continuous voltage mode didn't
>> handle the regulator ramp delay properly.  It treated the delay as a
>> fixed delay in uS despite the property being defined as uV / uS.  Let's
>> adjust it.  Luckily there appear to be no users of this ramp delay for
>> PWM regulators (as per grepping through device trees in linuxnext).
>>
>> Note also that the upper bound of usleep_range probably shouldn't be a
>> full 1 ms longer than the lower bound since I've seen plenty of hardware
>> with a ramp rate of ~5000 uS / uV and for small jumps the total delays
>> are in the tens of uS.  1000 is way too much.  We'll try to be dynamic
>> and use 10%
>
> I realize I may have introduced another bug when adding the
> ->enable()/disable() methods: we are only waiting for the ramp up delay
> when changing the voltage, but it should probably be applied when
> enabling the PWM, and conditionally applied when changing the voltage
> only if the PWM is enabled.

I'll certainly let Mark comment here, but:

* For enabling the PWM, I think you want want "regulator-enable-ramp-delay".

* Right, we probably shouldn't be delaying if the regulator is off.
I'll add that to my patch.

-Doug

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] regulator: pwm: Fix regulator ramp delay for continuous mode Douglas Anderson <dianders@chromium.org> - 2016-06-28 07:00 +0200
  Re: [PATCH] regulator: pwm: Fix regulator ramp delay for continuous  mode Caesar Wang <caesar.upstream@gmail.com> - 2016-06-28 12:40 +0200
  Re: [PATCH] regulator: pwm: Fix regulator ramp delay for continuous mode Brian Norris <briannorris@chromium.org> - 2016-06-28 18:10 +0200
  Re: [PATCH] regulator: pwm: Fix regulator ramp delay for continuous  mode Mark Brown <broonie@kernel.org> - 2016-06-28 21:00 +0200
    Re: [PATCH] regulator: pwm: Fix regulator ramp delay for continuous mode Doug Anderson <dianders@chromium.org> - 2016-06-28 21:40 +0200
  Re: [PATCH] regulator: pwm: Fix regulator ramp delay for continuous  mode Mark Brown <broonie@kernel.org> - 2016-06-28 21:00 +0200
    Re: [PATCH] regulator: pwm: Fix regulator ramp delay for continuous mode Doug Anderson <dianders@chromium.org> - 2016-06-28 21:40 +0200
      Re: [PATCH] regulator: pwm: Fix regulator ramp delay for continuous  mode Mark Brown <broonie@kernel.org> - 2016-06-28 22:00 +0200
  Re: [PATCH] regulator: pwm: Fix regulator ramp delay for continuous  mode Mark Brown <broonie@kernel.org> - 2016-07-01 10:10 +0200
    Re: [PATCH] regulator: pwm: Fix regulator ramp delay for continuous mode Doug Anderson <dianders@chromium.org> - 2016-07-01 22:30 +0200
      Re: [PATCH] regulator: pwm: Fix regulator ramp delay for continuous  mode Mark Brown <broonie@kernel.org> - 2016-07-02 10:10 +0200
        Re: [PATCH] regulator: pwm: Fix regulator ramp delay for continuous mode Doug Anderson <dianders@chromium.org> - 2016-07-06 20:40 +0200
          Re: [PATCH] regulator: pwm: Fix regulator ramp delay for continuous  mode Mark Brown <broonie@kernel.org> - 2016-07-07 10:20 +0200
      Re: [PATCH] regulator: pwm: Fix regulator ramp delay for continuous  mode Boris Brezillon <boris.brezillon@free-electrons.com> - 2016-07-02 18:00 +0200
        Re: [PATCH] regulator: pwm: Fix regulator ramp delay for continuous  mode Mark Brown <broonie@kernel.org> - 2016-07-04 11:00 +0200
          Re: [PATCH] regulator: pwm: Fix regulator ramp delay for continuous  mode Boris Brezillon <boris.brezillon@free-electrons.com> - 2016-07-04 11:10 +0200
            Re: [PATCH] regulator: pwm: Fix regulator ramp delay for continuous  mode Mark Brown <broonie@kernel.org> - 2016-07-04 11:20 +0200
              Re: [PATCH] regulator: pwm: Fix regulator ramp delay for continuous  mode Thierry Reding <thierry.reding@gmail.com> - 2016-07-08 18:50 +0200
  Re: [PATCH] regulator: pwm: Fix regulator ramp delay for continuous  mode Boris Brezillon <boris.brezillon@free-electrons.com> - 2016-07-06 14:30 +0200
    Re: [PATCH] regulator: pwm: Fix regulator ramp delay for continuous mode Doug Anderson <dianders@chromium.org> - 2016-07-06 20:40 +0200
      Re: [PATCH] regulator: pwm: Fix regulator ramp delay for continuous  mode Mark Brown <broonie@kernel.org> - 2016-07-07 10:20 +0200
    Re: [PATCH] regulator: pwm: Fix regulator ramp delay for continuous  mode Mark Brown <broonie@kernel.org> - 2016-07-07 10:20 +0200

csiph-web