]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: ccree - check that cryptocell reset completed
authorOfir Drang <ofir.drang@arm.com>
Mon, 17 Jun 2019 08:46:28 +0000 (11:46 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 27 Jun 2019 06:28:00 +0000 (14:28 +0800)
commit8a1ad28be1242721ddd5da8a20770596b23a7e45
treefc86b9da061c4bc7c0b7b2e1607e9e71a97ab49b
parentc4c63de4c75f575f3ac7d0fb1afe0efc58a0aa56
crypto: ccree - check that cryptocell reset completed

In case of driver probe and pm resume we need to check that the cryptocell
hardware reset cycle is completed. during the reset cycle that Cryptocell
provide read only access to the APB interface which allows to verify
through the CC registers that the reset is completed. Until reset
completion we assume that any write/crypto operation is blocked.

Signed-off-by: Ofir Drang <ofir.drang@arm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccree/cc_driver.c
drivers/crypto/ccree/cc_driver.h
drivers/crypto/ccree/cc_host_regs.h
drivers/crypto/ccree/cc_pm.c