summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525/ata_sd_as3525.c
diff options
context:
space:
mode:
authorJack Halpin <jack.halpin@gmail.com>2009-12-01 21:23:11 +0000
committerJack Halpin <jack.halpin@gmail.com>2009-12-01 21:23:11 +0000
commitc67ce499f362ba1e421652f8c01745610817160f (patch)
treece5c3e837d35d202d3091f60a12432faf72c13ee /firmware/target/arm/as3525/ata_sd_as3525.c
parent5bd4ec0c87db5230d8637a5b3b1fda9b4d5484ea (diff)
downloadrockbox-c67ce499f362ba1e421652f8c01745610817160f.tar.gz
rockbox-c67ce499f362ba1e421652f8c01745610817160f.zip
Sansa AMS: Check if SD controllers are already enabled before attempting to enable in order to read the registers.
If the controllers were already enabled there was a chance we could try to read the MCI_CLOCK registers while the cards were buffering and then disable the controllers prematurely. I guess funman knows and sees all!! Thanks funman. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23811 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/as3525/ata_sd_as3525.c')
-rw-r--r--firmware/target/arm/as3525/ata_sd_as3525.c2
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 bbf47a0960..c792946044 100644
--- a/firmware/target/arm/as3525/ata_sd_as3525.c
+++ b/firmware/target/arm/as3525/ata_sd_as3525.c
@@ -118,7 +118,7 @@ static const char sd_thread_name[] = "ata/sd";
118static struct mutex sd_mtx; 118static struct mutex sd_mtx;
119static struct event_queue sd_queue; 119static struct event_queue sd_queue;
120#ifndef BOOTLOADER 120#ifndef BOOTLOADER
121static bool sd_enabled = false; 121bool sd_enabled = false;
122#endif 122#endif
123 123
124static struct wakeup transfer_completion_signal; 124static struct wakeup transfer_completion_signal;