Home
last modified time | relevance | path

Searched hist:"9 a54d4848dae866aa3f1e79fd4203dfda3c30cd9" (Results 1 – 1 of 1) sorted by relevance

/optee_os/core/drivers/
H A Dstm32_bsec.c9a54d4848dae866aa3f1e79fd4203dfda3c30cd9 Thu Jun 15 08:41:23 UTC 2023 Gatien Chevallier <gatien.chevallier@foss.st.com> drivers: stm32_bsec: fix timeouts initialization

If OP-TEE is rescheduled right after the timeouts are initialized in
power_down_safmem() and power_up_safmem(), the timeout might be elapsed
when resuming the function. This would cause the while loop to break
instantly and there will be no delay between configuring the registers
and reading the status.

Initializes the timeout after configuring the registers.

Signed-off-by: Gatien Chevallier <gatien.chevallier@foss.st.com>
Reviewed-by: Etienne Carriere <etienne.carriere@foss.st.com>