]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.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)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 6 Feb 2016 07:23:56 +0000 (15:23 +0800)
commitc033042aa8f69894df37dabcaa0231594834a4e4
treed1539b2c8ddd462ce08fee3003e8d38c84e30a73
parentd961436c11482e974b702c8324426208f00cd7c4
crypto: atmel-sha - remove calls of clk_prepare() from atomic contexts

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().

Cc: stable@vger.kernel.org
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>
drivers/crypto/atmel-sha.c