summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-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 be9d5d50f7..2f867d20b1 100644
--- a/firmware/drivers/ata.c
+++ b/firmware/drivers/ata.c
@@ -105,7 +105,7 @@ static int perform_soft_reset(void);
105static int wait_for_bsy(void) __attribute__ ((section (".icode"))); 105static int wait_for_bsy(void) __attribute__ ((section (".icode")));
106static int wait_for_bsy(void) 106static int wait_for_bsy(void)
107{ 107{
108 int timeout = current_tick + HZ*4; 108 int timeout = current_tick + HZ*10;
109 while (TIME_BEFORE(current_tick, timeout) && (ATA_ALT_STATUS & STATUS_BSY)) 109 while (TIME_BEFORE(current_tick, timeout) && (ATA_ALT_STATUS & STATUS_BSY))
110 yield(); 110 yield();
111 111
@@ -127,7 +127,7 @@ static int wait_for_rdy(void)
127 if (!wait_for_bsy()) 127 if (!wait_for_bsy())
128 return 0; 128 return 0;
129 129
130 timeout = current_tick + HZ*4; 130 timeout = current_tick + HZ*10;
131 131
132 while (TIME_BEFORE(current_tick, timeout) && 132 while (TIME_BEFORE(current_tick, timeout) &&
133 !(ATA_ALT_STATUS & STATUS_RDY)) 133 !(ATA_ALT_STATUS & STATUS_RDY))