Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755088Ab1BHBkq (ORCPT ); Mon, 7 Feb 2011 20:40:46 -0500 Received: from adelie.canonical.com ([91.189.90.139]:58797 "EHLO adelie.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755034Ab1BHBkn (ORCPT ); Mon, 7 Feb 2011 20:40:43 -0500 From: Jeremy Kerr To: Colin Cross Subject: Re: [RFC,PATCH 1/3] Add a common struct clk Date: Tue, 8 Feb 2011 09:40:32 +0800 User-Agent: KMail/1.13.5 (Linux/2.6.35-25-generic; KDE/4.5.1; x86_64; ; ) Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Nicolas Pitre , Lorenzo Pieralisi , Vincent Guittot , linux-sh@vger.kernel.org, Ben Herrenschmidt , Sascha Hauer , Paul Mundt , Dima Zavin , Saravana Kannan , Ben Dooks , "Uwe =?iso-8859-1?q?Kleine-K=F6nig?=" , Russell King 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="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201102080940.33251.jeremy.kerr@canonical.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 688 Lines: 26 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/