Sansa AMS: Check if SD controllers are already enabled before attempting to enable...
commit9e21d4993db745dd1353bce111f3cdb69c598e32
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
parentc031608571e870f90bdb46ed1c8446d168c482ea
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