Rockbox mail archive
Subject: Re: Red Led Dead test II
From: Björn Stenberg (bjorn_at_haxx.se)
Date: 2003-12-15
Mike Holden wrote:
> Any chance of posting a diff patch as well, for the curious among us?!
It's a timing change in perform_soft_reset():
Index: ata.c
===================================================================
RCS file: /cvsroot/rockbox/firmware/drivers/ata.c,v
retrieving revision 1.96
diff -u -r1.96 ata.c
--- ata.c 3 Dec 2003 01:02:23 -0000 1.96
+++ ata.c 15 Dec 2003 08:38:02 -0000
@@ -631,10 +631,10 @@
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;
--
Björn
Page was last modified "Jan 10 2012" The Rockbox Crew
|