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:
Mihail Zenkov 2016-02-26 16:01:53 +00:00 committed by Gerrit Rockbox
parent d0d66f3aac
commit 2d8a785bc7

View file

@ -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;