Re: [PATCH 1/5] clk: allow reentrant calls into the clk framework

2013-03-27 Thread Mike Turquette
Quoting Bill Huang (2013-03-26 20:33:31) > On Thu, 2013-02-28 at 12:49 +0800, Mike Turquette wrote: > > Reentrancy into the clock framework from the clk.h api is highly > > desirable. This feature is necessary for clocks that are prepared and > > unprepared via i2c_transfer (which includes many PM

Re: [PATCH 1/5] clk: allow reentrant calls into the clk framework

2013-03-26 Thread Bill Huang
On Thu, 2013-02-28 at 12:49 +0800, Mike Turquette wrote: > Reentrancy into the clock framework from the clk.h api is highly > desirable. This feature is necessary for clocks that are prepared and > unprepared via i2c_transfer (which includes many PMICs and discrete > audio chips) and it is also ne

Re: [PATCH 1/5] clk: allow reentrant calls into the clk framework

2013-03-18 Thread Mike Turquette
Quoting Russell King - ARM Linux (2013-03-18 14:00:11) > On Mon, Mar 18, 2013 at 01:15:51PM -0700, Mike Turquette wrote: > > Quoting Ulf Hansson (2013-02-28 01:54:34) > > > On 28 February 2013 05:49, Mike Turquette wrote: > > > > @@ -703,10 +744,29 @@ int clk_enable(struct clk *clk) > > > >

Re: [PATCH 1/5] clk: allow reentrant calls into the clk framework

2013-03-18 Thread Russell King - ARM Linux
On Mon, Mar 18, 2013 at 01:15:51PM -0700, Mike Turquette wrote: > Quoting Ulf Hansson (2013-02-28 01:54:34) > > On 28 February 2013 05:49, Mike Turquette wrote: > > > @@ -703,10 +744,29 @@ int clk_enable(struct clk *clk) > > > unsigned long flags; > > > int ret; > > > > > > +

Re: [PATCH 1/5] clk: allow reentrant calls into the clk framework

2013-03-18 Thread Mike Turquette
Quoting Ulf Hansson (2013-02-28 01:54:34) > On 28 February 2013 05:49, Mike Turquette wrote: > > @@ -703,10 +744,29 @@ int clk_enable(struct clk *clk) > > unsigned long flags; > > int ret; > > > > + /* this call re-enters if it is from the same context */ > > + if (spin

Re: [PATCH 1/5] clk: allow reentrant calls into the clk framework

2013-02-28 Thread Ulf Hansson
On 28 February 2013 05:49, Mike Turquette wrote: > Reentrancy into the clock framework from the clk.h api is highly > desirable. This feature is necessary for clocks that are prepared and > unprepared via i2c_transfer (which includes many PMICs and discrete > audio chips) and it is also necessary

[PATCH 1/5] clk: allow reentrant calls into the clk framework

2013-02-27 Thread Mike Turquette
Reentrancy into the clock framework from the clk.h api is highly desirable. This feature is necessary for clocks that are prepared and unprepared via i2c_transfer (which includes many PMICs and discrete audio chips) and it is also necessary for performing dynamic voltage & frequency scaling via cl