]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: s5p-sss - Fix completing crypto request in IRQ handler
authorKrzysztof Kozlowski <krzk@kernel.org>
Sun, 5 Mar 2017 17:14:07 +0000 (19:14 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 8 Mar 2017 06:01:10 +0000 (14:01 +0800)
commit86208dc5e55a8cf4d16dcf89ff1f99d1a70c99c5
tree292819498f4ddec783e6d0e40264280ce3e8adc0
parent4e7cc33581b42f91f7d8eea759ff182691cf2479
crypto: s5p-sss - Fix completing crypto request in IRQ handler

In a regular interrupt handler driver was finishing the crypt/decrypt
request by calling complete on crypto request.  This is disallowed since
converting to skcipher in commit cf3776222c0f ("crypto: skcipher - Add
skcipher walk interface") and causes a warning:
WARNING: CPU: 0 PID: 0 at crypto/skcipher.c:430 skcipher_walk_first+0x13c/0x14c

The interrupt is marked shared but in fact there are no other users
sharing it.  Thus the simplest solution seems to be to just use a
threaded interrupt handler, after converting it to oneshot.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/s5p-sss.c