summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorJack Halpin <jack.halpin@gmail.com>2010-02-27 17:07:54 +0000
committerJack Halpin <jack.halpin@gmail.com>2010-02-27 17:07:54 +0000
commita872587a8de2740f00a1cf04e1f541328532d327 (patch)
treef4b4fbe51b3c07bf5e22d01330e9d307ed7cfa05 /firmware
parent226308663f3e7d5bd26003e7f122e1494bfb4e22 (diff)
downloadrockbox-a872587a8de2740f00a1cf04e1f541328532d327.tar.gz
rockbox-a872587a8de2740f00a1cf04e1f541328532d327.tar.bz2
rockbox-a872587a8de2740f00a1cf04e1f541328532d327.zip
sd-as3525v2: Load CID info to cardinfo.cid[] correctly.
SD_ALL_SEND_CID was using cardinfo.cid to store the response instead of the temp array used for long responses. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24944 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/as3525/sd-as3525v2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/as3525/sd-as3525v2.c b/firmware/target/arm/as3525/sd-as3525v2.c
index 0b2699e505..9175ef0f09 100644
--- a/firmware/target/arm/as3525/sd-as3525v2.c
+++ b/firmware/target/arm/as3525/sd-as3525v2.c
@@ -434,7 +434,7 @@ static int sd_init_card(void)
} while(!(card_info.ocr & (1<<31)) );
/* CMD2 send CID */
- if(!send_cmd(SD_ALL_SEND_CID, 0, MCI_RESP|MCI_LONG_RESP, card_info.cid))
+ if(!send_cmd(SD_ALL_SEND_CID, 0, MCI_RESP|MCI_LONG_RESP, temp_reg))
return -5;
for(i=0; i<4; i++)