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
This commit is contained in:
Jack Halpin 2010-03-22 02:29:40 +00:00
parent 17f5637918
commit 6357c5a085

View file

@ -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