diff options
author | Jack Halpin <jack.halpin@gmail.com> | 2009-12-16 06:32:22 +0000 |
---|---|---|
committer | Jack Halpin <jack.halpin@gmail.com> | 2009-12-16 06:32:22 +0000 |
commit | 7d6ec7bb6f8bb8ed6605e8af2cf4b2969c984279 (patch) | |
tree | 3f7349956774304b79e280cab19cbb7ae3d6fa42 /firmware/target/arm/as3525 | |
parent | b283967ebd30f7828b75df3c973f4d01885a49f8 (diff) | |
download | rockbox-7d6ec7bb6f8bb8ed6605e8af2cf4b2969c984279.tar.gz rockbox-7d6ec7bb6f8bb8ed6605e8af2cf4b2969c984279.zip |
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
Diffstat (limited to 'firmware/target/arm/as3525')
-rw-r--r-- | firmware/target/arm/as3525/ata_sd_as3525.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
777 | DMAC_FLOWCTRL_PERI_MEM_TO_PERI, true, false, 0, DMA_S8, NULL); | 777 | DMAC_FLOWCTRL_PERI_MEM_TO_PERI, true, false, 0, DMA_S8, NULL); |
778 | #if defined(HAVE_MULTIDRIVE) | 778 | #if defined(HAVE_MULTIDRIVE) |
779 | /*Small delay for writes prevents data crc failures at lower freqs*/ | 779 | /*Small delay for writes prevents data crc failures at lower freqs*/ |
780 | if((drive == SD_SLOT_AS3525) && !hs_card) | 780 | if(!hs_card) |
781 | { | 781 | { |
782 | int write_delay = 125; | 782 | int write_delay = 125; |
783 | while(write_delay--); | 783 | while(write_delay--); |