Re: [RFC v1] regulator: core: introduce regulator chain lockingscheme

From: Mark Brown
Date: Mon Apr 15 2013 - 11:50:47 EST


On Mon, Apr 15, 2013 at 04:03:35PM +0300, Grygorii Strashko wrote:

> To achieve this goal:
> - abstract regulator locking out into helper functions;
> - use the root Regulator (which has no supply defined, like regA) in chain to
> protect the whole chain;
> - implement regulator chain locking scheme as proposed by Thomas Gleixner for CCF
> re-entrance in https://lkml.org/lkml/2013/3/27/171 and in the similar way as
> it is done for CCF by Mike Turquette in https://lkml.org/lkml/2013/3/28/512

Split this into separate refactoring and other change commits - one
change per commit.

> In addition, such locking scheme allows to have access to the supplier
> regulator API from inside child's (consumer) regulator API.

I've still not seen any use case articulated for doing this...

Attachment: signature.asc
Description: Digital signature