OSDN Git Service

crypto: stm32/cryp - reorder hw initialization
authorNicolas Toromanoff <nicolas.toromanoff@foss.st.com>
Tue, 30 Nov 2021 07:55:01 +0000 (08:55 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 11 Dec 2021 05:48:06 +0000 (16:48 +1100)
commit95fe2253cc1ad65d7f140d1944fa1b5d3c67abc0
tree0c758a6614eef9f80556e0288b730f4d91200597
parent4b898d5cfa4d9a0ad5bc82cb5eafdc092394c6a9
crypto: stm32/cryp - reorder hw initialization

The CRYP IP checks the written key depending of the configuration, it's
safer to write the whole configuration to hardware then the key to avoid
unexpected key rejection.

Signed-off-by: Nicolas Toromanoff <nicolas.toromanoff@foss.st.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/stm32/stm32-cryp.c