Re: [RFC PATCH] regulator: Fix recursive mutex lockdep warning

From: Mark Brown
Date: Fri Aug 07 2015 - 10:13:15 EST


On Thu, Aug 06, 2015 at 12:49:22PM +0100, Srinivas Kandagatla wrote:
> On 06/08/15 12:40, Mark Brown wrote:

> >>lock_class per regulator makes more sense, I will try to cookup an RFC
> >>patch.

> >There's an issue there with all lock classes needing to be statically
> >allocated which makes things a bit tricky.

> Yes, just realized it with "BUG: key edadc07c not in .data!"

Yeah, it's a bit nasty. We went round this a bit with regmap and
unfortunately didn't manage to come up with any great ideas. The regmap
workaround just landed in my tree, I'm not sure it's really great for
regulator though.

Attachment: signature.asc
Description: Digital signature