summaryrefslogtreecommitdiff
path: root/firmware/target/arm
diff options
context:
space:
mode:
authorMihail Zenkov <mihail.zenkov@gmail.com>2016-02-26 16:01:53 +0000
committerGerrit Rockbox <gerrit@rockbox.org>2016-03-18 14:56:12 +0100
commit2d8a785bc7a67ec869f8c1c5e8984f62047f94eb (patch)
tree1431d46bd533c3363ef2fdf034cf2073ac4eb7d8 /firmware/target/arm
parentd0d66f3aac26ba7af4cac220368d1ec00dcb4092 (diff)
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
Diffstat (limited to 'firmware/target/arm')
-rw-r--r--firmware/target/arm/as3525/sd-as3525v2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/as3525/sd-as3525v2.c b/firmware/target/arm/as3525/sd-as3525v2.c
index b4ac40152b..84a2a0db6a 100644
--- a/firmware/target/arm/as3525/sd-as3525v2.c
+++ b/firmware/target/arm/as3525/sd-as3525v2.c
@@ -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;