Sansa AMS: Check if SD controllers are already enabled before attempting to enable...
commite85ca2f0ee66992b9bcd72bbde965d2d1b87399e
authorFlynDice <FlynDice@a1c6a512-1295-4272-9138-f99709370657>
Tue, 1 Dec 2009 21:23:11 +0000 (1 21:23 +0000)
committerFlynDice <FlynDice@a1c6a512-1295-4272-9138-f99709370657>
Tue, 1 Dec 2009 21:23:11 +0000 (1 21:23 +0000)
treece5c3e837d35d202d3091f60a12432faf72c13ee
parentd4e66d3e382ac360ff388553f4710e3d21200601
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
firmware/target/arm/as3525/ata_sd_as3525.c
firmware/target/arm/as3525/debug-as3525.c