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

From: Sasha Levin
Date: Thu Feb 11 2021 - 13:20:55 EST


On Thu, Feb 11, 2021 at 03:40:21PM +0000, Mark Brown wrote:
On Thu, Feb 11, 2021 at 04:38:08PM +0100, Greg Kroah-Hartman wrote:
On Thu, Feb 11, 2021 at 03:26:56PM +0000, Mark Brown wrote:

> > 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.

Yes, that's the one.

I've grabbed these two additional commits for 4.19:

05f224ca6693 ("regulator: core: Clean enabling always-on regulators + their supplies")
2bb166636933 ("regulator: core: enable power when setting up constraints")

And queued up 14a71d509ac8. Thanks for the heads-up!

--
Thanks,
Sasha