]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerSasha Levin <sasha.levin@oracle.com>
Sun, 28 Feb 2016 05:09:47 +0000 (00:09 -0500)
commit0a86238d2e2ad9b74329622c72e99cacbbaf6485
treeafb67dc5d66b19d28ea4a819c08d1f85dd132426
parent617c364c29ce8eefa9f0122fd01829adc2ac5d83
crypto: atmel-sha - remove calls of clk_prepare() from atomic contexts

[ Upstream commit ee36c87a655325a7b5e442a9650a782db4ea20d2 ]

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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/crypto/atmel-sha.c