mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
Revert r26290
If the card is not actively deselected on newer Fuzev2, frequent switches between internal storage and µSD will lock up. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27500 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
92fdebb1f2
commit
c6b838695c
1 changed files with 5 additions and 0 deletions
|
|
@ -963,6 +963,11 @@ static int sd_transfer_sectors(IF_MD2(int drive,) unsigned long start,
|
||||||
|
|
||||||
dma_release();
|
dma_release();
|
||||||
|
|
||||||
|
/* 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 -21;
|
||||||
|
|
||||||
#ifndef BOOTLOADER
|
#ifndef BOOTLOADER
|
||||||
sd_enable(false);
|
sd_enable(false);
|
||||||
led(false);
|
led(false);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue