Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers: stm32_bsec: fix timeouts initializations
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> Change-Id: Idd7e9151cdddb1db60e775f5b59ec5b8a1639815 Reviewed-on: https://gerrit.st.com/c/mpu/oe/optee/optee_os/+/312894 ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com> ACI: CIBUILD <MDG-smet-aci-builds@list.st.com> Reviewed-by: Etienne CARRIERE <etienne.carriere@foss.st.com> Reviewed-by: Gatien CHEVALLIER <gatien.chevallier@st.com> Tested-by: Gatien CHEVALLIER <gatien.chevallier@st.com> Domain-Review: Gatien CHEVALLIER <gatien.chevallier@st.com>
- Loading branch information