diff options
author | Jack Halpin <jack.halpin@gmail.com> | 2009-12-01 21:23:11 +0000 |
---|---|---|
committer | Jack Halpin <jack.halpin@gmail.com> | 2009-12-01 21:23:11 +0000 |
commit | c67ce499f362ba1e421652f8c01745610817160f (patch) | |
tree | ce5c3e837d35d202d3091f60a12432faf72c13ee /firmware/target/arm/as3525/ata_sd_as3525.c | |
parent | 5bd4ec0c87db5230d8637a5b3b1fda9b4d5484ea (diff) | |
download | rockbox-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.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 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"; | |||
118 | static struct mutex sd_mtx; | 118 | static struct mutex sd_mtx; |
119 | static struct event_queue sd_queue; | 119 | static struct event_queue sd_queue; |
120 | #ifndef BOOTLOADER | 120 | #ifndef BOOTLOADER |
121 | static bool sd_enabled = false; | 121 | bool sd_enabled = false; |
122 | #endif | 122 | #endif |
123 | 123 | ||
124 | static struct wakeup transfer_completion_signal; | 124 | static struct wakeup transfer_completion_signal; |