From: Herbert Xu Subject: Re: [PATCH] crypto: atmel-aes - remove calls of clk_prepare() from atomic contexts Date: Mon, 1 Feb 2016 16:22:13 +0800 Message-ID: <20160201082213.GF5818@gondor.apana.org.au> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: davem@davemloft.net, nicolas.ferre@atmel.com, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, matthias.mayr@student.kit.edu To: Cyrille Pitchen Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-crypto.vger.kernel.org On Fri, Jan 29, 2016 at 05:53:33PM +0100, Cyrille Pitchen wrote: > clk_prepare()/clk_unprepare() must not be called within atomic context. > > This patch calls clk_prepare() once for all from atmel_aes_probe() and > clk_unprepare() from atmel_aes_remove(). > > Then calls of clk_prepare_enable()/clk_disable_unprepare() were replaced > by calls of clk_enable()/clk_disable(). > > Signed-off-by: Cyrille Pitchen > Reported-by: Matthias Mayr Applied to crypto. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt