Re: [PATCH 4.19 07/24] regulator: core: avoid regulator_resolve_supply() race condition

From: Greg Kroah-Hartman
Date: Thu Feb 11 2021 - 11:52:21 EST


On Thu, Feb 11, 2021 at 03:26:56PM +0000, Mark Brown wrote:
> On Thu, Feb 11, 2021 at 04:02:41PM +0100, Greg Kroah-Hartman wrote:
> > From: David Collins <collinsd@xxxxxxxxxxxxxx>
> >
> > [ Upstream commit eaa7995c529b54d68d97a30f6344cc6ca2f214a7 ]
> >
> > The final step in regulator_register() is to call
> > regulator_resolve_supply() for each registered regulator
>
> This is buggy without a followup which doesn't seem to have been
> backported here.

Would that be 14a71d509ac8 ("regulator: Fix lockdep warning resolving
supplies")? Looks like it made it into the 5.4.y and 5.10.y queues, but
not 4.19.y.

Sasha, any reason for this?

thanks,

greg k-h