Re: [PATCH] regmap : make lock/unlock functions customizable.

2012-10-14 Thread Mark Brown
On Fri, Oct 12, 2012 at 10:24:12AM +0200, Davide Ciminaghi wrote: > On Fri, Oct 12, 2012 at 03:26:09PM +0900, Mark Brown wrote: > > On Mon, Oct 01, 2012 at 11:31:04PM +0200, cimina...@gnudd.com wrote: > > > + struct regmap *map = (struct regmap *)__map; > > > mutex_lock(&map->mutex); > > ...you

Re: [PATCH] regmap : make lock/unlock functions customizable.

2012-10-12 Thread Davide Ciminaghi
On Fri, Oct 12, 2012 at 03:26:09PM +0900, Mark Brown wrote: > On Mon, Oct 01, 2012 at 11:31:04PM +0200, cimina...@gnudd.com wrote: > > From: Davide Ciminaghi > > > > It is sometimes convenient for a regmap user to override the standard > > regmap lock/unlock functions with custom functions. > >

Re: [PATCH] regmap : make lock/unlock functions customizable.

2012-10-11 Thread Mark Brown
On Mon, Oct 01, 2012 at 11:31:04PM +0200, cimina...@gnudd.com wrote: > From: Davide Ciminaghi > > It is sometimes convenient for a regmap user to override the standard > regmap lock/unlock functions with custom functions. This looks good overall but... > -static void regmap_lock_mutex(struct re

[PATCH] regmap : make lock/unlock functions customizable.

2012-10-01 Thread ciminaghi
From: Davide Ciminaghi It is sometimes convenient for a regmap user to override the standard regmap lock/unlock functions with custom functions. For instance this can be useful in case an already existing spinlock or mutex has to be used for locking a set of registers instead of the internal regm