summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorConstantine Sapuntzakis <csapuntz@cvs.openbsd.org>2000-08-11 03:59:48 +0000
committerConstantine Sapuntzakis <csapuntz@cvs.openbsd.org>2000-08-11 03:59:48 +0000
commit098ca6b509ff44c96ab797eaee207f082959ec9b (patch)
treef1f21a9fa98dea2dc1908028e9b44ba2294be49a /sys
parent02ee9cfd2fa42cd2a4fe193e8b41b804db35ffc8 (diff)
DMA transfers should transition to completed state directly too
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/atapiscsi/atapiscsi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/atapiscsi/atapiscsi.c b/sys/dev/atapiscsi/atapiscsi.c
index 7ff1fbd557e..3dc606903ac 100644
--- a/sys/dev/atapiscsi/atapiscsi.c
+++ b/sys/dev/atapiscsi/atapiscsi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: atapiscsi.c,v 1.29 2000/08/09 07:43:14 csapuntz Exp $ */
+/* $OpenBSD: atapiscsi.c,v 1.30 2000/08/11 03:59:47 csapuntz Exp $ */
/*
* This code is derived from code with the copyright below.
@@ -947,7 +947,7 @@ wdc_atapi_intr_command(chp, xfer, timeout)
dma_flags);
}
- if (xfer->c_bcount == 0)
+ if (xfer->c_bcount == 0 || (xfer->c_flags & C_DMA))
as->protocol_phase = as_completed;
else
as->protocol_phase = as_data;