From 6bf0f653884948ba7952c1703159bf406b4d91a9 Mon Sep 17 00:00:00 2001 From: Bertrik Sikken Date: Mon, 21 Mar 2011 20:41:53 +0000 Subject: AMSv2 SD: use a sleep instead of a udelay for 100 ms delay git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29627 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/as3525/sd-as3525v2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'firmware/target/arm/as3525') diff --git a/firmware/target/arm/as3525/sd-as3525v2.c b/firmware/target/arm/as3525/sd-as3525v2.c index b0808ca1d3..6e1e2f480b 100644 --- a/firmware/target/arm/as3525/sd-as3525v2.c +++ b/firmware/target/arm/as3525/sd-as3525v2.c @@ -564,7 +564,7 @@ static int sd_init_card(const int drive) problems with some SD cards (particularly 16 GB and bigger cards). Preferably we should handle this properly instead of using a delay, see also FS#11870. */ - udelay(100000); + sleep(HZ/10); /* We need to go back to STBY state now so we can read csd */ /* CMD7 w/rca=0: Deselect card to put it in STBY state */ -- cgit v1.2.3