diff options
author | Jack Halpin <jack.halpin@gmail.com> | 2010-03-22 02:29:40 +0000 |
---|---|---|
committer | Jack Halpin <jack.halpin@gmail.com> | 2010-03-22 02:29:40 +0000 |
commit | 6357c5a085fe8959085db5a741e315e0a03c9824 (patch) | |
tree | 49c38002fe38164305f4b0e55dec1d3f1f7c542c /firmware/target/arm/as3525 | |
parent | 17f563791884a985a6e37e4bced54b2f67e6739e (diff) | |
download | rockbox-6357c5a085fe8959085db5a741e315e0a03c9824.tar.gz rockbox-6357c5a085fe8959085db5a741e315e0a03c9824.zip |
sd-as3525v2.c Use SD_DESELECT_CARD instead of SD_SELECT_CARD to make the code easier to understand. There is no functional difference.
Add comment to explain why we need to do this.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25281 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/as3525')
-rw-r--r-- | firmware/target/arm/as3525/sd-as3525v2.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/firmware/target/arm/as3525/sd-as3525v2.c b/firmware/target/arm/as3525/sd-as3525v2.c index f8e85122b7..9698a149ed 100644 --- a/firmware/target/arm/as3525/sd-as3525v2.c +++ b/firmware/target/arm/as3525/sd-as3525v2.c | |||
@@ -836,8 +836,9 @@ static int sd_transfer_sectors(IF_MD2(int drive,) unsigned long start, | |||
836 | dma_release(); | 836 | dma_release(); |
837 | 837 | ||
838 | #ifdef HAVE_MULTIDRIVE | 838 | #ifdef HAVE_MULTIDRIVE |
839 | /* CMD7 w/rca =0 : deselect card to put it in STBY state */ | 839 | /* CMD lines are separate, not common, so we need to actively deselect */ |
840 | if(!send_cmd(drive, SD_SELECT_CARD, 0, MCI_NO_RESP, NULL)) | 840 | /* CMD7 w/rca =0 : deselects card & puts it in STBY state */ |
841 | if(!send_cmd(drive, SD_DESELECT_CARD, 0, MCI_NO_RESP, NULL)) | ||
841 | return -6; | 842 | return -6; |
842 | #endif | 843 | #endif |
843 | 844 | ||