From 041e5dceca59160b05b24dba845b080d78b9c249 Mon Sep 17 00:00:00 2001 From: Barry Wardell Date: Sat, 20 Jan 2007 01:21:47 +0000 Subject: On the H10 when we power the disk on again after spindown and poweroff we need to give it a little while to turn back on before we should try to access it. This should fix problems with disk accesses when coming from a disk poweroff state (related discussion in FS#6421). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12081 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/iriver/h10/power-h10.c | 1 + 1 file changed, 1 insertion(+) diff --git a/firmware/target/arm/iriver/h10/power-h10.c b/firmware/target/arm/iriver/h10/power-h10.c index 9470c0a67d..d53bf88fa6 100644 --- a/firmware/target/arm/iriver/h10/power-h10.c +++ b/firmware/target/arm/iriver/h10/power-h10.c @@ -78,6 +78,7 @@ void ide_power_enable(bool on) { if(on){ GPIOF_OUTPUT_VAL &=~ 0x1; + sleep(1); } else { GPIOF_OUTPUT_VAL |= 0x1; } -- cgit v1.2.3