[PATCH v2 3/7] power: regulator-uclass: perform regulator setup inside uclass

Simon Glass sjg at chromium.org
Thu Jul 20 21:42:53 CEST 2023


Hi Svyatoslav,

On Thu, 20 Jul 2023 at 06:38, Svyatoslav Ryhel <clamor95 at gmail.com> wrote:
>
> Regulators initial setup was previously dependent on board call.
> To move from this behaviour were introduced two steps. First is
> that all individual regulators will be probed just after binding

We must not probe devices automatically when bound. The i2c interface
may not be available, etc. Do a probe afterwards.

Perhaps I am misunderstanding this, iwc please reword this commit message.

> which ensures that regulator pdata is filled and second is setting
> up regulator in post probe which enseres that correct regulator
> state according to pdata is reached.
>
> Signed-off-by: Svyatoslav Ryhel <clamor95 at gmail.com>
> ---
>  drivers/power/regulator/regulator-uclass.c | 212 ++++++---------------
>  include/power/regulator.h                  | 119 ------------
>  2 files changed, 62 insertions(+), 269 deletions(-)

Regards,
SImon


More information about the U-Boot mailing list