Re: Regulator probe

From: Mark Brown
Date: Fri Sep 09 2016 - 08:18:17 EST

On Wed, Sep 07, 2016 at 05:24:01PM +0300, Andy Shevchenko wrote:
> On Tue, 2016-09-06 at 11:24 +0100, Mark Brown wrote:

> > Nothing says you have to describe all regulators, you just need to
> > tell the core you have told it about everything you're going to tell
> > it about.  Until you do that the core has to assume that something may
> > come along later and describe that supply.

> That's I would like to make work. For now we have fixed voltage
> regulator which returns EPROBE_DEFER since GPIO IP is not initialized
> yet at that point. But regulator framework decides that it's not
> possible case and overrides the error code.

What do you mean? Of course we should handle probe deferral if we fail
to get a resource like a GPIO. Are you trying to say that this doesn't
work for you?

> For me it still looks that regulator framework would not intercept
> deferred regulators in case of full constraints. Feels like I'm missing
> something...

I can't parse the above, sorry.

Attachment: signature.asc
Description: PGP signature