From 5b2b2eba16ec727bd5d6f6c255279236040d5d8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Schmidt?= Date: Mon, 20 Oct 2003 13:44:33 +0000 Subject: [PATCH] Up delay from 10 to 100ms after reset, this helps some slow devices get their act together before we start probing. --- sys/dev/ata/ata-lowlevel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/ata/ata-lowlevel.c b/sys/dev/ata/ata-lowlevel.c index 184a7e708f6..f4c8f0e0967 100644 --- a/sys/dev/ata/ata-lowlevel.c +++ b/sys/dev/ata/ata-lowlevel.c @@ -532,7 +532,8 @@ ata_reset(struct ata_channel *ch) ATA_IDX_OUTB(ch, ATA_ALTSTAT, ATA_A_IDS | ATA_A_RESET); DELAY(10000); ATA_IDX_OUTB(ch, ATA_ALTSTAT, ATA_A_IDS); - DELAY(10000); + DELAY(100000); + ATA_IDX_INB(ch, ATA_ERROR); /* wait for BUSY to go inactive */ for (timeout = 0; timeout < 310; timeout++) {