diff options
author | Barry Wardell <rockbox@barrywardell.net> | 2007-01-20 01:21:47 +0000 |
---|---|---|
committer | Barry Wardell <rockbox@barrywardell.net> | 2007-01-20 01:21:47 +0000 |
commit | 041e5dceca59160b05b24dba845b080d78b9c249 (patch) | |
tree | 62fc44cfba9d4ebde0ca7a53d4a42d707dd2ef10 | |
parent | 080e10da88165dc8f7c5401cdb67cbcec6539fc9 (diff) |
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
-rw-r--r-- | firmware/target/arm/iriver/h10/power-h10.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |