summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-05-19 14:06:13 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-05-19 14:06:13 +0000
commit627baea9533633c7d09d778601df7ce3c6f8f66d (patch)
tree78280c1f4b762280aaca793ab69578867f645182 /firmware
parent54f08f3ab129918e68792a508ae46e086764749b (diff)
downloadrockbox-627baea9533633c7d09d778601df7ce3c6f8f66d.tar.gz
rockbox-627baea9533633c7d09d778601df7ce3c6f8f66d.tar.bz2
rockbox-627baea9533633c7d09d778601df7ce3c6f8f66d.zip
sd-as3525: wait 100µs before disabling SD clocks
test_disk doesn't freeze anymore when closing the file between writing & reading git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26164 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/as3525/sd-as3525.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/target/arm/as3525/sd-as3525.c b/firmware/target/arm/as3525/sd-as3525.c
index ac359f3f85..57ad16bcb2 100644
--- a/firmware/target/arm/as3525/sd-as3525.c
+++ b/firmware/target/arm/as3525/sd-as3525.c
@@ -912,6 +912,10 @@ void sd_enable(bool on)
}
#endif /* defined(HAVE_HOTSWAP) && defined (HAVE_ADJUSTABLE_CPU_VOLTAGE) */
+ /* not sure why we have to wait, but without this, test_disk freezes
+ * when closing the 300MB file which was just written to */
+ udelay(100);
+
sd_enabled = false;
#ifdef HAVE_MULTIDRIVE