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
This commit is contained in:
Rafaël Carré 2010-05-19 14:06:13 +00:00
parent 54f08f3ab1
commit 627baea953

View file

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