summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2003-12-17 20:15:12 +0000
committerBjörn Stenberg <bjorn@haxx.se>2003-12-17 20:15:12 +0000
commit1fe97ec54e5f18d853b58e4da2ffb46f7cb59721 (patch)
tree30231d1337ca9caa058604863ab16366b74f05b4
parent3cefa27e10ec2b662cc9eb13cba3aa34f293660e (diff)
downloadrockbox-1fe97ec54e5f18d853b58e4da2ffb46f7cb59721.tar.gz
rockbox-1fe97ec54e5f18d853b58e4da2ffb46f7cb59721.zip
Improved timing in soft_reset. This hopefully cures spontaneous Red Led freezes.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4161 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/drivers/ata.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c
index 5a08db4f33..0ed0877034 100644
--- a/firmware/drivers/ata.c
+++ b/firmware/drivers/ata.c
@@ -632,10 +632,10 @@ static int perform_soft_reset(void)
ATA_SELECT = SELECT_LBA | ata_device;
ATA_CONTROL = CONTROL_nIEN|CONTROL_SRST;
- sleep(HZ/20000); /* >= 5us */
+ sleep(1); /* >= 5us */
ATA_CONTROL = CONTROL_nIEN;
- sleep(HZ/400); /* >2ms */
+ sleep(1); /* >2ms */
/* This little sucker can take up to 30 seconds */
retry_count = 8;