From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Liao Subject: Re: [PATCH v3 2/4] clk: mediatek: Add initial common clock support for Mediatek SoCs. Date: Wed, 21 Jan 2015 15:49:45 +0800 Message-ID: <1421826585.2437.3.camel@mtksdaap41> References: <1420601123-25859-1-git-send-email-jamesjj.liao@mediatek.com> <1420601123-25859-3-git-send-email-jamesjj.liao@mediatek.com> <1420685701.27952.44.camel@mtksdaap41> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Matthias Brugger Cc: Mark Rutland , Ashwin Chaugule , Vladimir Murzin , Mike Turquette , Pawel Moll , srv_heupstream , Ian Campbell , Catalin Marinas , "linux-kernel@vger.kernel.org" , HenryC Chen , "Joe.C" , "devicetree@vger.kernel.org" , Rob Herring , Sascha Hauer , Kumar Gala , jamesjj.liao@mediatek.com, Russell King , huang eddie , "linux-arm-kernel@lists.infradead.org" List-Id: devicetree@vger.kernel.org Hi Matthias, On Tue, 2015-01-20 at 13:39 +0100, Matthias Brugger wrote: > I think you should use spin_lock_irqsave(&clk_ops_lock, flags) instead > of mtk_clk_lock. > In any case I think you should define a spinlock in clk-mt8135.c and > pass a reference of it in the init functions. > See drivers/clk/berlin as a good example. I see. I'll change it in next patch. Best regards, James