summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorJack Halpin <jack.halpin@gmail.com>2010-03-22 02:29:40 +0000
committerJack Halpin <jack.halpin@gmail.com>2010-03-22 02:29:40 +0000
commit6357c5a085fe8959085db5a741e315e0a03c9824 (patch)
tree49c38002fe38164305f4b0e55dec1d3f1f7c542c /firmware
parent17f563791884a985a6e37e4bced54b2f67e6739e (diff)
downloadrockbox-6357c5a085fe8959085db5a741e315e0a03c9824.tar.gz
rockbox-6357c5a085fe8959085db5a741e315e0a03c9824.tar.bz2
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')
-rw-r--r--firmware/target/arm/as3525/sd-as3525v2.c5
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,
dma_release();
#ifdef HAVE_MULTIDRIVE
- /* CMD7 w/rca =0 : deselect card to put it in STBY state */
- if(!send_cmd(drive, SD_SELECT_CARD, 0, MCI_NO_RESP, NULL))
+ /* CMD lines are separate, not common, so we need to actively deselect */
+ /* CMD7 w/rca =0 : deselects card & puts it in STBY state */
+ if(!send_cmd(drive, SD_DESELECT_CARD, 0, MCI_NO_RESP, NULL))
return -6;
#endif