]> git.karo-electronics.de Git - karo-tx-linux.git/commit
crypto: atmel-sha - remove calls of clk_prepare() from atomic contexts
authorCyrille Pitchen <cyrille.pitchen@atmel.com>
Fri, 5 Feb 2016 12:45:13 +0000 (13:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Feb 2016 20:31:05 +0000 (12:31 -0800)
commitee36c87a655325a7b5e442a9650a782db4ea20d2
tree5149a81614368248348a6c0317662a724fbf76f6
parent714e7964f79e3b74e16b1d040efa34705da891f8
crypto: atmel-sha - remove calls of clk_prepare() from atomic contexts

commit c033042aa8f69894df37dabcaa0231594834a4e4 upstream.

clk_prepare()/clk_unprepare() must not be called within atomic context.

This patch calls clk_prepare() once for all from atmel_sha_probe() and
clk_unprepare() from atmel_sha_remove().

Then calls of clk_prepare_enable()/clk_disable_unprepare() were replaced
by calls of clk_enable()/clk_disable().

Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
Reported-by: Matthias Mayr <matthias.mayr@student.kit.edu>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/crypto/atmel-sha.c