diff options
author | Constantine Sapuntzakis <csapuntz@cvs.openbsd.org> | 2001-04-17 18:26:23 +0000 |
---|---|---|
committer | Constantine Sapuntzakis <csapuntz@cvs.openbsd.org> | 2001-04-17 18:26:23 +0000 |
commit | a58d72dbebcb24dbf1a51a3bb0a729a3d44c330c (patch) | |
tree | c89fe57e39d11bed2bb5ee4dc5f40f3e178cd1a1 /sys/dev/atapiscsi/atapiscsi.c | |
parent | df08d216eef30b44b1d4440b188ce87f8c7aebeb (diff) |
Turn off DMA on REQUEST SENSE
Diffstat (limited to 'sys/dev/atapiscsi/atapiscsi.c')
-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; |