mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Use tsleep instead od DELAY in probe when not in boot.
This fixes the uptil 30s hangs on PCCARD ata device probes.
This commit is contained in:
parent
5915158066
commit
19095fd23c
1 changed files with 4 additions and 1 deletions
|
|
@ -1244,7 +1244,10 @@ ata_reset(struct ata_softc *scp, int32_t *mask)
|
|||
if (*mask == 0x03) /* wait for both master & slave */
|
||||
if (!(status0 & ATA_S_BUSY) && !(status1 & ATA_S_BUSY))
|
||||
break;
|
||||
DELAY(100);
|
||||
if (ata_delayed_attach)
|
||||
DELAY(100);
|
||||
else
|
||||
tsleep(ata_delayed_attach, PRIBIO, "atarst", 1);
|
||||
}
|
||||
DELAY(1);
|
||||
outb(scp->altioaddr, ATA_A_4BIT);
|
||||
|
|
|
|||
Loading…
Reference in a new issue