diff options
author | Björn Stenberg <bjorn@haxx.se> | 2002-09-04 20:15:45 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2002-09-04 20:15:45 +0000 |
commit | e65b65eeb00c506e196654eb19e4eb11fc9e78e4 (patch) | |
tree | 0dd53724e71d2f51b885a929dc0527bd6354648d /firmware | |
parent | 88aeb7140cd46bf14009d463e2d5209684d405ec (diff) | |
download | rockbox-e65b65eeb00c506e196654eb19e4eb11fc9e78e4.tar.gz rockbox-e65b65eeb00c506e196654eb19e4eb11fc9e78e4.zip |
Increased BSY & RDY timeouts to 10 seconds
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2174 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/drivers/ata.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c index be9d5d50f7..2f867d20b1 100644 --- a/firmware/drivers/ata.c +++ b/firmware/drivers/ata.c @@ -105,7 +105,7 @@ static int perform_soft_reset(void); static int wait_for_bsy(void) __attribute__ ((section (".icode"))); static int wait_for_bsy(void) { - int timeout = current_tick + HZ*4; + int timeout = current_tick + HZ*10; while (TIME_BEFORE(current_tick, timeout) && (ATA_ALT_STATUS & STATUS_BSY)) yield(); @@ -127,7 +127,7 @@ static int wait_for_rdy(void) if (!wait_for_bsy()) return 0; - timeout = current_tick + HZ*4; + timeout = current_tick + HZ*10; while (TIME_BEFORE(current_tick, timeout) && !(ATA_ALT_STATUS & STATUS_RDY)) |