From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeremy Kerr Date: Tue, 08 Feb 2011 01:40:32 +0000 Subject: Re: [RFC,PATCH 1/3] Add a common struct clk Message-Id: <201102080940.33251.jeremy.kerr@canonical.com> List-Id: References: <201102011711.31258.jeremy.kerr@canonical.com> <1297058877.800158.458894385837.1.gpush@pororo> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-arm-kernel@lists.infradead.org Hi Ryan, > > +int clk_enable(struct clk *clk) > > +{ > > + int ret = 0; > > + > > + if (!clk->ops->enable) > > + return 0; > > + > > + spin_lock(&clk->enable_lock); > > spin_lock_irqsave/spin_unlock_irqrestore. This could get called with > irqs on or off. Ah, I had planned to change this but (obviously) didn't get to it. Thanks for the reminder, I'll include this in the next revision. Cheers, Jeremy