diff options
| author | Søren Schmidt <sos@FreeBSD.org> | 2003-10-14 16:53:13 +0000 |
|---|---|---|
| committer | Søren Schmidt <sos@FreeBSD.org> | 2003-10-14 16:53:13 +0000 |
| commit | a827a5ff6aea5be86793c9615d0d11c9b0bd0002 (patch) | |
| tree | f8650db94bce8148d9cefb0619e59cf1652aab16 /sys/dev | |
| parent | 3011d4b3e2986ec394bffff78d6d8ab473f40e24 (diff) | |
Notes
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/ata/ata-queue.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/sys/dev/ata/ata-queue.c b/sys/dev/ata/ata-queue.c index deb05145fc1b4..aa3390d06ba9b 100644 --- a/sys/dev/ata/ata-queue.c +++ b/sys/dev/ata/ata-queue.c @@ -315,20 +315,21 @@ ata_completed(void *context, int pending) static void ata_timeout(struct ata_request *request) { + struct ata_channel *ch = request->device->channel; + int quiet = request->flags & ATA_R_QUIET; + /* clear timeout etc */ request->timeout_handle.callout = NULL; -#if 0 - /* call interrupt to try finish up the command */ - request->device->channel->hw.interrupt(request->device->channel); - if (request->device->channel->running == NULL) { - if (!(request->flags & ATA_R_QUIET)) + /* call hw.interrupt to try finish up the command */ + ch->hw.interrupt(request->device->channel); + if (ch->running != request) { + if (!quiet) ata_prtdev(request->device, "WARNING - %s recovered from missing interrupt\n", ata_cmd2str(request)); return; } -#endif /* if this was a DMA request stop the engine to be on the safe side */ if (request->flags & ATA_R_DMA) { |
