mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
sd-as3525v2: Limit number of retry
With current setting we spend few minutes for reading one sector if we have data timeout error. With new setting system (linux) show error after ~10 seconds. Change-Id: Id3922acb2ea146c6ea2f89f26206df9488e6ee4e
This commit is contained in:
parent
d0d66f3aac
commit
2d8a785bc7
1 changed files with 1 additions and 1 deletions
|
|
@ -777,7 +777,7 @@ static int sd_transfer_sectors(IF_MD(int drive,) unsigned long start,
|
|||
bool aligned = !((uintptr_t)buf & (CACHEALIGN_SIZE - 1));
|
||||
int const retry_all_max = 1;
|
||||
int retry_all = 0;
|
||||
int const retry_data_max = 100; /* Generous, methinks */
|
||||
int const retry_data_max = 3;
|
||||
int retry_data;
|
||||
unsigned int real_numblocks;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue