From 7d6ec7bb6f8bb8ed6605e8af2cf4b2969c984279 Mon Sep 17 00:00:00 2001 From: Jack Halpin Date: Wed, 16 Dec 2009 06:32:22 +0000 Subject: Sansa AMS: Use small write delay for all non-HS cards including the internal SD to prevent data corruption. Making this delay apply to all non-HS SD cards seems to fix some data corruption issues that came up with the switch to 4-bit widebus. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24019 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/as3525/ata_sd_as3525.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'firmware/target/arm/as3525/ata_sd_as3525.c') diff --git a/firmware/target/arm/as3525/ata_sd_as3525.c b/firmware/target/arm/as3525/ata_sd_as3525.c index 85b1daff5e..56e666744f 100644 --- a/firmware/target/arm/as3525/ata_sd_as3525.c +++ b/firmware/target/arm/as3525/ata_sd_as3525.c @@ -777,7 +777,7 @@ static int sd_transfer_sectors(IF_MD2(int drive,) unsigned long start, DMAC_FLOWCTRL_PERI_MEM_TO_PERI, true, false, 0, DMA_S8, NULL); #if defined(HAVE_MULTIDRIVE) /*Small delay for writes prevents data crc failures at lower freqs*/ - if((drive == SD_SLOT_AS3525) && !hs_card) + if(!hs_card) { int write_delay = 125; while(write_delay--); -- cgit v1.2.3