1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-02-20 11:32:04 +00:00

fix(core): Increase Optiga MAX_RETRY_READ_MS to 6 sec.

This commit is contained in:
Andrew Kozlik 2024-06-25 06:46:48 +02:00 committed by Andrew Kozlik
parent 95c2cb2008
commit 4d4ee99716
2 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1 @@
Fix Optiga-related RSODs

View File

@ -66,7 +66,10 @@ static const uint32_t I2C_TIMEOUT_MS = 25;
static const int I2C_MAX_RETRY_COUNT = 10;
// Maximum time in millisecods to retry reading Optiga's response to a command.
static const int MAX_RETRY_READ_MS = 300;
// If the SEC is high, then the throttling down delay can be as high as
// t_max = 5000 ms. The maximum time to execute a non-RSA operation is 130 ms.
// We round the total up to the nearest second.
static const int MAX_RETRY_READ_MS = 6000;
// Maximum number of times to retry reading Optiga's response to a command when
// it claims it's not busy executing a command.