summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMihail Zenkov <mihail.zenkov@gmail.com>2016-02-26 16:08:54 +0000
committerGerrit Rockbox <gerrit@rockbox.org>2016-03-18 14:56:31 +0100
commite65478c6937c8f42f0998333ecad236984c31957 (patch)
tree679c1942e88bf7870d384dcda51f1e24f7167a31
parent2d8a785bc7a67ec869f8c1c5e8984f62047f94eb (diff)
downloadrockbox-e65478c.tar.gz
rockbox-e65478c.tar.bz2
rockbox-e65478c.zip
sd-as3525v2: exit with error if transfer failure
Change-Id: Ic94cf7d3e058a876bbafdb5a35f26f240e1384fd
-rw-r--r--firmware/target/arm/as3525/sd-as3525v2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/target/arm/as3525/sd-as3525v2.c b/firmware/target/arm/as3525/sd-as3525v2.c
index 84a2a0db6a..abe9ceab5f 100644
--- a/firmware/target/arm/as3525/sd-as3525v2.c
+++ b/firmware/target/arm/as3525/sd-as3525v2.c
@@ -925,6 +925,9 @@ sd_transfer_retry_with_reinit:
;
if (--retry_data >= 0)
continue;
+
+ ret -= 24;
+ goto sd_transfer_error;
}
break;