From 16571745618e75af3fca3606bc9780fd0f011a10 Mon Sep 17 00:00:00 2001 From: Rafaël Carré Date: Mon, 22 Mar 2010 12:12:09 +0000 Subject: 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 --- firmware/target/arm/as3525/sd-as3525v2.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'firmware/target/arm/as3525/sd-as3525v2.c') 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; } -- cgit v1.2.3