mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-04 09:09:56 +00:00
Backout the tsleep on probe, it breaks in resume mode as tsleep
not always has a context to sleep on. Back to the drawing board...
This commit is contained in:
parent
e7b7c050c7
commit
ae97e232fb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=64534
@ -1281,10 +1281,7 @@ 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;
|
||||
if (ata_delayed_attach)
|
||||
DELAY(100);
|
||||
else
|
||||
tsleep(&ata_delayed_attach, PRIBIO, "atarst", 1);
|
||||
DELAY(100);
|
||||
}
|
||||
DELAY(1);
|
||||
outb(scp->altioaddr, ATA_A_4BIT);
|
||||
|
Loading…
Reference in New Issue
Block a user