From 098ca6b509ff44c96ab797eaee207f082959ec9b Mon Sep 17 00:00:00 2001 From: Constantine Sapuntzakis Date: Fri, 11 Aug 2000 03:59:48 +0000 Subject: DMA transfers should transition to completed state directly too --- sys/dev/atapiscsi/atapiscsi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys') 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; -- cgit v1.2.3