diff options
-rw-r--r-- | sys/dev/atapiscsi/atapiscsi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/atapiscsi/atapiscsi.c b/sys/dev/atapiscsi/atapiscsi.c index f61e546de6f..c7680564f75 100644 --- a/sys/dev/atapiscsi/atapiscsi.c +++ b/sys/dev/atapiscsi/atapiscsi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: atapiscsi.c,v 1.40 2001/04/17 18:06:36 csapuntz Exp $ */ +/* $OpenBSD: atapiscsi.c,v 1.41 2001/04/17 18:26:22 csapuntz Exp $ */ /* * This code is derived from code with the copyright below. @@ -790,9 +790,9 @@ wdc_atapi_real_start(chp, xfer, timeout, ret) /* Turn off DMA flag on REQUEST SENSE */ - if (!(xfer->c_flags & C_POLL) && + if (!(xfer->c_flags & (C_POLL | C_SENSE)) && (drvp->drive_flags & (DRIVE_DMA | DRIVE_UDMA)) && - (xfer->c_bcount > 100 || (xfer->c_flags & C_SENSE))) + (xfer->c_bcount > 100)) xfer->c_flags |= C_DMA; else xfer->c_flags &= ~C_DMA; |