From e65b65eeb00c506e196654eb19e4eb11fc9e78e4 Mon Sep 17 00:00:00 2001 From: Björn Stenberg Date: Wed, 4 Sep 2002 20:15:45 +0000 Subject: Increased BSY & RDY timeouts to 10 seconds git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2174 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/ata.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'firmware/drivers') 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)) -- cgit v1.2.3