[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAA8EJprEQcP3hzqSsq8jzoCzf0gvbWdnQtCEGBO5S3WJNUkYEQ@mail.gmail.com>
Date: Wed, 2 Jun 2021 16:14:35 +0300
From: Dmitry Baryshkov <dmitry.baryshkov@...aro.org>
To: Mark Brown <broonie@...nel.org>
Cc: Liam Girdwood <lgirdwood@...il.com>,
Michał Mirosław <mirq-linux@...e.qmqm.pl>,
open list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 2/2] regulator: core: always use enable_delay when
enabling regulators
On Thu, 20 May 2021 at 14:58, Mark Brown <broonie@...nel.org> wrote:
>
> On Thu, May 20, 2021 at 01:12:24AM +0300, Dmitry Baryshkov wrote:
> > Some regulators (e.g. fixed) do not have .enable callback per se, but
> > use supply regulator and enable_delay. Do not return early from
> > _regulator_do_enable in such cases, so that enable_delay is properly
> > handled.
>
> This doesn't seem like the right fix - if we didn't actually do anything
> then we don't need to add a delay. We should only be doing this if some
> parent regulator changed state.
I have implemented this, but then it becomes too fragile. If the
parent gets enabled for whatever reason just few us ago, the whole
delay would be skipped.
--
With best wishes
Dmitry
Powered by blists - more mailing lists