diff options
author | Mihail Zenkov <mihail.zenkov@gmail.com> | 2016-02-26 16:01:53 +0000 |
---|---|---|
committer | Gerrit Rockbox <gerrit@rockbox.org> | 2016-03-18 14:56:12 +0100 |
commit | 2d8a785bc7a67ec869f8c1c5e8984f62047f94eb (patch) | |
tree | 1431d46bd533c3363ef2fdf034cf2073ac4eb7d8 | |
parent | d0d66f3aac26ba7af4cac220368d1ec00dcb4092 (diff) | |
download | rockbox-2d8a785bc7a67ec869f8c1c5e8984f62047f94eb.tar.gz rockbox-2d8a785bc7a67ec869f8c1c5e8984f62047f94eb.zip |
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
-rw-r--r-- | firmware/target/arm/as3525/sd-as3525v2.c | 2 |
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, | |||
777 | bool aligned = !((uintptr_t)buf & (CACHEALIGN_SIZE - 1)); | 777 | bool aligned = !((uintptr_t)buf & (CACHEALIGN_SIZE - 1)); |
778 | int const retry_all_max = 1; | 778 | int const retry_all_max = 1; |
779 | int retry_all = 0; | 779 | int retry_all = 0; |
780 | int const retry_data_max = 100; /* Generous, methinks */ | 780 | int const retry_data_max = 3; |
781 | int retry_data; | 781 | int retry_data; |
782 | unsigned int real_numblocks; | 782 | unsigned int real_numblocks; |
783 | 783 | ||