AMS Sansa: Replace simple write delay with a smarter check on status of MCI FIFO.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22850 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jack Halpin 2009-09-29 16:32:24 +00:00
parent 065e8e082a
commit 37265d308b

View file

@ -735,12 +735,8 @@ 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");
}
/* Wait for FIFO to empty */
while(MCI_STATUS(drive) & (MCI_TX_ACTIVE | MCI_RX_ACTIVE));
if(!transfer_error[drive])
{