crypto: stm32/hash - Fix self test issue during export
authorLionel Debieve <lionel.debieve@st.com>
Mon, 8 Apr 2019 07:41:58 +0000 (09:41 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 18 Apr 2019 14:14:57 +0000 (22:14 +0800)
commita88be9a7558ae51c3c0782bd5ab4340bb3822105
tree3e37031d86dd3cb344f9b94e82860ce4fbfaf40d
parentf1b70d16389de2a6eac838ca378a8334d771bcfe
crypto: stm32/hash - Fix self test issue during export

Change the wait condition to check if the hash is busy.
Context can be saved as soon as hash has finishing processing
data. Remove unused lock in the device structure.

Signed-off-by: Lionel Debieve <lionel.debieve@st.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/stm32/stm32-hash.c