From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sascha Hauer Subject: Re: [PATCH] clk: Fix race conditions between clk_set_parent() and clk_enable() Date: Tue, 15 May 2012 22:00:40 +0200 Message-ID: <20120515200040.GP30400@pengutronix.de> References: <1336798797-8724-1-git-send-email-skannan@codeaurora.org> <20120515194245.GO30400@pengutronix.de> <4FB2B3AA.3010903@codeaurora.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <4FB2B3AA.3010903@codeaurora.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Saravana Kannan Cc: Andrew Lunn , Paul Walmsley , Mike Turquette , Linus Walleij , Stephen Boyd , linux-arm-msm@vger.kernel.org, Mark Brown , Magnus Damm , linux-kernel@vger.kernel.org, Rob Herring , Richard Zhao , Grant Likely , Deepak Saxena , Thomas Gleixner , Shawn Guo , Amit Kucheria , Jamie Iles , Russell King , Arnd Bergman , Jeremy Kerr , linux-arm-kernel@lists.infradead.org List-Id: linux-arm-msm@vger.kernel.org On Tue, May 15, 2012 at 12:51:06PM -0700, Saravana Kannan wrote: > >> ret = clk->ops->set_parent(clk->hw, i); > > > >You call ->set_parent while holding a spinlock. This won't work with i2c > >clocks. > > I did account for that. I explained it in the commit text. Please > let me know if any part of that is not clear or is not correct. > I missed this part in the commit log. I have no idea whether we can live with this limitation though. Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |