]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 26 May 2016 22:44:55 +0000 (15:44 -0700)
commit72c9d8ef6eab5b79d642b9304f19a677cb7957c1
tree329ad8a4c481d70f28982b385bdb4296cd5636cc
parent1f9e2f12a6fa944fb2abf7ccf3f6a961c1638c37
crypto: atmel-sha - remove calls of clk_prepare() from atomic contexts

Orabug: stable_rc4

[ 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>
(cherry picked from commit 0a86238d2e2ad9b74329622c72e99cacbbaf6485)

Signed-off-by: Dan Duval <dan.duval@oracle.com>
drivers/crypto/atmel-sha.c