diff options
| author | Søren Schmidt <sos@FreeBSD.org> | 2004-08-22 15:54:08 +0000 |
|---|---|---|
| committer | Søren Schmidt <sos@FreeBSD.org> | 2004-08-22 15:54:08 +0000 |
| commit | d607fde675c8b191e1f71153e7fa65cf8c452b6b (patch) | |
| tree | a2d82f00197f9a62251a5929f88159587e0f4309 /sys | |
| parent | 7fff37fc1520a98672a04ab4ef0a1a4204126d15 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/dev/ata/ata-queue.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/sys/dev/ata/ata-queue.c b/sys/dev/ata/ata-queue.c index 1dd7bc4afeb8..7151dcd9a007 100644 --- a/sys/dev/ata/ata-queue.c +++ b/sys/dev/ata/ata-queue.c @@ -238,8 +238,16 @@ ata_completed(void *context, int dummy) ATA_DEBUG_RQ(request, "completed called"); if (request->flags & ATA_R_TIMEOUT) { - /* workaround for devices failing to interrupt */ - if (request->status == (ATA_S_READY | ATA_S_DSC)) { + /* workarounds for devices failing to interrupt */ + if (!request->status) { + ata_prtdev(request->device, + "FAILURE - %s no interrupt\n", + ata_cmd2str(request)); + request->result = ENXIO; + ATA_UNLOCK_CH(channel); + channel->locking(channel, ATA_LF_UNLOCK); + } + else if (request->status == (ATA_S_READY | ATA_S_DSC)) { ata_prtdev(request->device, "WARNING - %s no interrupt but good status\n", ata_cmd2str(request)); |
