Re: [RFC PATCH v2 2/2] regulator: core: Avoid lockdep reports when resolving supplies

From: Mark Brown
Date: Sun Apr 30 2023 - 12:14:55 EST


On Fri, Apr 28, 2023 at 06:57:36PM -0700, Stephen Boyd wrote:

> Does that long period of time cover a large section of code? I'm not so
> much concerned about holding the lock for a long time. I'm mostly
> concerned about holding the lock across the debugfs APIs, and
> potentially anything else that debugfs might lock against. If the lock
> is only really needed to modify the list in a safe manner then it may be
> better to make it a little more complex so that we don't exit the
> regulator framework with some rdev locks held.

I'm not sure that I understand the specific concerns with the debugfs
APIs?

Attachment: signature.asc
Description: PGP signature