AMS Sansa: Add delay for µSD writes to fix CRC failures with class 6 µSD cards.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22825 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jack Halpin 2009-09-25 01:38:51 +00:00
parent f2cd5ec6af
commit 68089db6db

View file

@ -735,6 +735,14 @@ static int sd_transfer_sectors(IF_MD2(int drive,) unsigned long start,
wakeup_wait(&transfer_completion_signal, TIMEOUT_BLOCK);
/* Higher speed class cards need a write delay here for some reason */
if((drive == SD_SLOT_AS3525) && write)
{
int delay = 3500;
while(delay--) asm volatile ("nop\n");
}
if(!transfer_error[drive])
{
if(!write)