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:
parent
95c2cb2008
commit
4d4ee99716
1
core/.changelog.d/+optiga.fixed
Normal file
1
core/.changelog.d/+optiga.fixed
Normal file
@ -0,0 +1 @@
|
||||
Fix Optiga-related RSODs
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user