]> 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)
commit30caae47ef0a39efaafafa4eb48e74af39118b78
treefc86b9da061c4bc7c0b7b2e1607e9e71a97ab49b
parent479468690c4db43266e7e04f8899ef12e4d9a123
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