Messages in this thread | | | From | Jeremy Kerr <> | Subject | Re: [RFC,PATCH 1/2] Add a common struct clk | Date | Fri, 4 Jun 2010 09:40:48 +0800 |
| |
Hi Russell,
> Or to put it another way, the above method results in clk_enable() > sometimes returning with the clock enabled and sometimes with the > clock still disabled. > > That's not nice behaviour for drivers which may need the clock enabled > to read/write the device registers.
OK, I'll rework with proper locking to ensure that the clock is enabled/disabled on return from clk_enable.
Cheers,
Jeremy
| |