From ade669f0e76008937e1d0ae83d99ef2af5c73863 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Mon, 15 Mar 2010 00:36:08 +0000 Subject: sd-as3525v2: reduce the delay before reading response git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25189 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/as3525/sd-as3525v2.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/firmware/target/arm/as3525/sd-as3525v2.c b/firmware/target/arm/as3525/sd-as3525v2.c index 5a8565e..35699f6 100644 --- a/firmware/target/arm/as3525/sd-as3525v2.c +++ b/firmware/target/arm/as3525/sd-as3525v2.c @@ -377,8 +377,9 @@ static bool send_cmd(const int cmd, const int arg, const int flags, if(flags & MCI_RESP) { - mci_delay(); /* if we read the response too fast we might read the - * response of the previous command instead */ + int i = 0xff; while(i--) ; + /* if we read the response too fast we might read the response + * of the previous command instead */ if(flags & MCI_LONG_RESP) { -- cgit v1.1