summaryrefslogtreecommitdiff
path: root/firmware/target/arm
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-03-22 12:12:09 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-03-22 12:12:09 +0000
commit16571745618e75af3fca3606bc9780fd0f011a10 (patch)
treede5e7bf0f21178410443d6fb4b60a85d479182f6 /firmware/target/arm
parent94fb09316ae64f63373418df0bb1de4a90fdf73b (diff)
sd-as3525v2: read cid & csd in the correct order, fix disk info
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25292 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm')
-rw-r--r--firmware/target/arm/as3525/sd-as3525v2.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/firmware/target/arm/as3525/sd-as3525v2.c b/firmware/target/arm/as3525/sd-as3525v2.c
index 7d1c2bfb18..945d6e5302 100644
--- a/firmware/target/arm/as3525/sd-as3525v2.c
+++ b/firmware/target/arm/as3525/sd-as3525v2.c
@@ -420,11 +420,13 @@ static bool send_cmd(const int drive, const int cmd, const int arg, const int fl
if(flags & MCI_LONG_RESP)
{
- response[3] = MCI_RESP3;
- response[2] = MCI_RESP2;
- response[1] = MCI_RESP1;
+ response[0] = MCI_RESP3;
+ response[1] = MCI_RESP2;
+ response[2] = MCI_RESP1;
+ response[3] = MCI_RESP0;
}
- response[0] = MCI_RESP0;
+ else
+ response[0] = MCI_RESP0;
}
return true;
}